Hi AllI have to inmplement the following scenario......and i am think of it......need ur helpI am having a button and a treeOn clicking once I have to sort that tree alphabaticallyand on again clicking that button it will toggle sorting to creationMeans........ on clicking again that tree will rearr...
Hi to all,I am creating a list control dynamically in which i have to paas "accept files" style because i want drag and drop facilty. But i got there is no such style but when i create my list through dialog resource it shows "accept file" in extended style.Please tell me how can i add this Thanks i...
994 byte By
Odiee at 2007-11-20 11:36:49
Hi.I have a CTreeCtrl witch child nodes never changes, and I'm processing input based on names of child nodes that are clicked on.On the right side of CTreeCtrl i have a blank SDI form derived gray space.What I need to do is create different sets of controls for each child node of CTreeCtrl.Now...
1079 byte By
ghovis at 2007-11-20 11:36:51
Hello. I have an SDI app, and I'm experimenting with a 'Wizard'-type modeless dialog front end for the user. In order to use this modeless to control the state and features of the SDI, I create an instance of the modeless dialog and make it the parent of the MainFrame in the MainFra...
Hi, i have included code below which creates a DWORD in the registry. Can anyone give me advice on how i could change this code so that is changes an existing value of an existing DWORD in the registry??? #include <windows.h> int main() { HKEY hHKCU = NULL, hMyKey = NULL;...
597 byte By
DeepT at 2007-11-20 11:36:55
I have a dialog box that is non-interactive, it just displays some information while it is doing a job. In the OnInitDialog() function I start a thread that will do all the work.When the thread is finished, the dialog needs to exit with a return code. I know you can do a EndDialog(), but I heard...
454 byte By
thaikick at 2007-11-20 11:36:58
Hello there i m building an app that without user interaction (pressing a button) it does some work and then displays an auto close message box.I've added all these functions to OnInitDialog but the program does correctly all the work displays the autoclose messagebox and then draws the dialog....
Hi all,I have read only edit control to which I would like to print result of type double. The way I'm doing it now is to convert double to SCtring withCString::Format and then econtrol.SetWindowTextW(doubleString).Is there more elegant way to do this in order to preserve double formatting? Rig...
Is there API or MFC function to know screen ratio(4:3, 16:10, 16:9)?<br/>Isthere API or MFC function to know if it is wide monitor or normal monitor?<br/>Thank you.
1036 byte By
SteveS at 2007-11-20 11:37:13
OK, so there's a function for listview controls that returns the approximate size needed to display the contents of the list control, but either this is buggy as hell or the documentation is totally wrong.I have a listview with 5 items that are displayed in an icon view. The value returned by...
734 byte By
Rehorav at 2007-11-20 11:37:14
I need to make a program that can retrieve the width of lines and put it into a histogram. Same thing with the height of lines, but a seperate histogram. I've already looked into histograms and I know how to do those ( I'm using C# for that ). Its how to retrieve the width and height of al...
131 byte By
Gundam at 2007-11-20 11:37:18
Hi<br/>I use Activeskin 4.3 to skin my forms but when applying it, the labales don't get skinned????<br/>help please
510 byte By
glank at 2007-11-20 11:37:19
i want to make a progmram like this.*on screen*input number [2 - 9] :when we input with "2" . on the screen will show this**22***2222**2222***22**and when we input with "5" . on the screen will show :*****55*********5555*******555555*****55555555***5555555555**5555555555***55555555*****555555*******...
954 byte By
rmoore07 at 2007-11-20 11:37:20
I need to convert 0 degress to 20 degrees in Fahrenheit into Celsius. I think I have the majority of the program written correctly but the Celsius output is always 0....any ideas? Thanks!#include<iostream>using namespace std;int celsius (); // Declare the Function/////////////////////////////...
Hi All,I am using VC++ MFC Application.I want to know the typeof my variable at run time, how can I do that? I hope it is possible with the typeof operator, but it gives me error like this identifier not found.So, is it possible with VC++ to use something like typeof operator??Thanks in Advance.Ashi...
1707 byte By
zeroblade at 2007-11-20 11:37:31
I have a .csv file that I'm trying read into a two-dimensional array that I've created in main program. I'm trying to read the data from the .csv file straight into the array as a value so I can use it for calculations. The .csv file basically looks like this except in a spreadsheet:1...
549 byte By
MoboTech at 2007-11-20 11:37:33
How do I open a file with spaces (ex. read me.txt). I know this can be done using getline(Input_File, File_Name), I've tried doing that, but with no luck.Here's my function:void TextInfo(void){ ifstream Input_File; string File_Name; do { Input_File.open( GetString( "Enter name of file to...
242 byte By
panacea at 2007-11-20 11:37:37
I have created one setup file for vc++ project using VS.Net setup&deployment wizard.<br/>I want to run that setup file without installing VC++ software.<br/>For that what i have to do?<br/>Please reply as soon as possible<br/>thanks
Ok so here's the deal. My assignment is to write a program that computes the primality of any given integer, or whether it is prime or not. I've got that part of the program done, and it works, but i donno if it follows the requirements of the assignment. These requirements are...Your p...
5089 byte By
jj71787 at 2007-11-20 11:37:41
i need help with errors im getting ill show you the assignment my code and my errorsok first the assignment Many computer applications, such as Microsoft Excel, can compare date values that occur after January 1, 1900. For example, these programs can determine if 06/06/99 is less than (comes before...
Hello frnds...I m confused in types of DLLs. when and where to use specific type of DLL.Can u please tell me the difference between tyes of DllMFC DLL : Win32 DLL:1)MFC extension 2)Statically Linked Statically Linked 3)Shared(dynamically)linked...
Hello,Using the sample code from bmpout.cpp, I can successfully create bmp files from drawings but I ran into a problem with memory allocation.The stack calls are:OdGsBaseVectorizerView::~OdGsBaseVectorizerViewOdSlotManager::FreeSlot(unsigned int)OdArray<int, OdMemoryAllocator::append(const int)....
Hi,I'm writing a program that accesses attached SCSI devices. As part of the program I wish to enumerate all such devices, including HDDs, optical drives and USB drives. I'm currently doing so by calling DeviceIoControl() to return a buffer, and then displaying the details of the drives ba...
There is a variable (type is int),it changes its value per second,now i want to display its value in sdi(to monitor its value),which function can do it.<br/> thank you.
445 byte By
mce at 2007-11-20 11:37:53
I have been looking for information regarding accessing windows objects across threads.If the main thread pass you the object handler during thread creation, fine, i can access the Windows object in the worker thread. I want to know if the handler/pointer is not passed in during the creation, is it...
Hello, I have an application in VC++ 6.0 with mfc. <br/>I need print on video messages.<br/>I define a static function. In this function I need get a device context for to use TextOut. How I can do it?<br/>Thanks<br/> :wave:
1202 byte By
flynny1st at 2007-11-20 11:38:00
Hi basically i have program with a button which when clicked launches an opens another dialog. now rather than open the dialog in a new window i want to simply overwrite the existing one. and then when the user clicks back i lod the old one again. (if theres an easier way to do this than the method...
2737 byte By
flynny1st at 2007-11-20 11:38:01
hi i'm trying to use the class from the following link http://www.dev-archive.com/cpp/g-m/bitmap/article.php/c1687/#morebut am getting the following errors-------Configuration: LaunchDLL - Win32 Debug-------Compiling...CDib.cppLaunchDLL\CDib.cpp(7) : error C2258: illegal pure syntax, must be ...
428 byte By
aguess at 2007-11-20 11:38:02
hii have 02 list A and B , B is overlaped in the list A.my 02 list is like fellowing : A: CStringA name; CStringA first_name; int number; list<place> plc;B: CStringA street; int number; my question is how can i reach the varaiable steet ( for exemple) from the list...
78 byte By
danandu at 2007-11-20 11:38:03
Hi,<br/>How to create a Gradient colored title bar for any dialog window.
194 byte By
danandu at 2007-11-20 11:38:08
Hi,<br/>How to get bit values into an array for an existing bitmap. I know that if we select binary view from resource we would be seeing the hex values. But i want bit values through code.
hello,<br/> <br/> plz, Tell me is it posible in C to write in a file without open it..how can i do it?<br/>Thanks
Hi, i have a prgram that updates a DWORD in the registry. However i want to make my program refresh the registry every time the change takes place so that it comes into effect straight away.I am DESPERATE to do this, ive done research and cnt find anything. U guys are my last hope or im giving up lo...
1159 byte By
flynny1st at 2007-11-20 11:38:13
Hi all,i have downloaded and used the files from the following link http://www.codeproject.com/bitmap/BitmapFromScreen.aspi have used the DibHelper DibConv and DibPal files in my project. What i wish to do i create a two dimensional array of 1 and 0 to represent each pixel (as the images i will be de...
330 byte By
kranti at 2007-11-20 11:38:14
Hi, I need to call CFontDialog in a module where we configure settings of our project and these font settings should reflect in another module where we send emails.I am trying to do these by storing CFontDialog settings in a file and reading that file in other module but stuck up with how to store...
Here is code: //m_listCtrl.SetListView(LVS_LIST); LV_COLUMN lsCol; LV_ITEM lsIte; lsCol.mask = LVCF_FMT|LVCF_WIDTH|LVCTEXT|LVCSUBITEM; lsCol.fmt = LVCFMT_LEFT; lsCol.cx = 20; char* arColumns[7] = {"Date","I","II","III","IV","V","VI"}; for(int i=0; i<7; i++) { lcCol.iSubItem =...
232 byte By
jdbdjdbd at 2007-11-20 11:38:17
I have 2 Visual C++ book. However, I am looking for Standard C++ book. I want your suggestions and help on any good book on C++ for beginners. If any of these books are online that you know of, please give links too.<br/>thanks
1449 byte By
bderagon at 2007-11-20 11:38:19
Hi All,I'm using Visual Studio 2003, and MFC/C++.I want to simulate just the update/refresh portion of the maximize command, on an ie window. I've already managed to connect to the window and can send minimize and maximize commands to it, as well as move the window around the screen, even...
Hi<br/>I used RichEdit ctrl with "RICHEDIT20W" for unicode support.<br/>When FindText or FindTextW is called, its getting Failed.<br/>Please could you tell the procedure for utilizing the FindText method <br/>Regards,<br/>nag.
743 byte By
Ako44 at 2007-11-20 11:38:24
Hey!Can you tell me why my code is not working? I want to change the window style for my DirectX application. In fullscreen mode, it should be WS_POPUP but in windowed mode I want it to be WS_SYSMENU | WS_MINIMIZEBOX.But this is not working, the style isnt changing:windowClass.lpfnWndProc = MsgProc;...
1064 byte By
ayhoung at 2007-11-20 11:38:25
please help. here is my code. im basically combining two strings together but when i return the value, the s3 array doesn't show. the funny thing however, is that if i copy s3 string to another array, it shows what i want it to show. why??code: #include <iostream.h>#include <stdio.h>...
437 byte By
zspirit at 2007-11-20 11:38:28
When my application exits, I want to see if its final state is maximized or minimized or etc so I can restore it to that state when it is restarted again. I don't see any function which can tell me that (sort of the opposition function of ShowWindow())In MFC it is easy to set the application to...
Ok so i have VC++ 6.0. So far it works for me but i ran into a problem that might require me to upgrade to a newer version of VC++ like 2005 or 2008. My problem is that when i try to compile i get this linker error.LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"So a simple adjustment of t...
412 byte By
tholz at 2007-11-20 11:38:31
Hi,"CDialog::Create" has 2 constructors. One uses the dialog id, like IDD_MYDIALOG. Easy.But the other constructor expects a char-pointer to the "name of a dialog-box template resource". What's that supposed to mean? DLL? RC-File? I can't find any info on this...Any ideas?Thanks,Thomas----...
1409 byte By
Meka at 2007-11-20 11:38:37
Hi frndz,I'm trying to capture a video using following functions..<code>CString strCaption; strCaption.LoadString(IDS_PP_VIDEO_CAPTION); m_hWndVideo = capCreateCaptureWindow( strCaption, // window name if pop-up WS_CHILD | WS_VISIBLE, // window style 0, 0, 160,...
CString SqlCmd = _T("CREATE TABLE tblTable1 ( id INT NOT NULL AUTO_INCREMENT ,field1 VARCHAR(50), field2 VARCHAR(50),PRIMARY KEY(id))"); database.Execute(SqlCmd);Can Anyone tell me why this SQL Statement give a syntax error . I am trying to create a table in Access with first column auto incrementi...
1270 byte By
KPexEA at 2007-11-20 11:38:47
I would like to know how to change a library that I am using from using dlls to static.Here is what I am doing:I am using the ffmpeg code, it only compiles under MinGW, it generates output as libavcodec.a, and it will also generate libavcodec.lib and libavcodec.dll for use in VC programs.So I am com...
864 byte By
DeepT at 2007-11-20 11:38:48
I have a client program that I would like to say 'goodbye' to the server right before it stops. This is easy to do if the program is stopping itself, but I do not know how to capture other events.In particular, the two big ones are:1. The user logs out (goes to thier log in screen).2....
what is the simplest way to input values into a program, that needto be matched to another set of equivalent values, to be used later in the program, Is there a way of storing a table in a file and the calling data from it?say i had 1,2,3,4,5,6, as input valuesand wanted them matched to 10,11,12,13,...
I was given this assignment, and i am struggling at starting it... im using c+ language in VI with g++ as my compiler in windows xp..The Casey County Apple Festival needs your help! Thousands ofpeople are converging on the county and expecting a piece of theworld's largest apple pie. In an a...