|
happycpp wrote:
DoEvents so the window of the program doesn't hang..what's the equivalent of it in VC++...
what about this :-
while(PeekMessage(&msg,0,0,0))
{
DispatchMessage(&msg);
}
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
thanx a lot...i'll give it a try..
|
|
|
|
|
when u click on any variable name, we'd find "go to declaration","go to reference".. but if u click on it, its not taking the cursor to the decl or ref, its simply saying "The Symbol 'VAL1' is not defined".. but i've declared everything inside the class n i get no errors.
and code assistance is not coming too... when you type the .(dot) after an object or something, nothing is displayed. should we change any setting in the IDE?
thanks in advance
vivek
|
|
|
|
|
do you use VC++ 6 or VC++.NET 2003 ? (VC6 i think)
you have to make the pdb file when it ask you to...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Did you declare the variable in a header or a code file ?
The class browser only looks in header files, certainly on VC6.0.
Elaine
The tigress is here
|
|
|
|
|
viveking wrote:
code assistance is not coming too... when you type the .(dot) after an object or something, nothing is displayed. should we change any setting in the IDE?
Close down your workspace, Delete the project.ncw file and restart your computer. Next time when you open your project the Intellisense will be working
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
toxcct wrote:
restarting the computer ??
Yap Some time it's needed
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
i've brought my application down to the system tray.. now i wanna pop-up messages in the system tray itself just like yahoo messenger..eg:(1 new mail). please help.
thanks,
vivek..
|
|
|
|
|
viveking wrote:
wanna pop-up messages in the system tray itself just like yahoo messenger..eg1 new mail).
This going to help :-
http://www.codeproject.com/dialog/taskbarnotifier.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
is there anyway to learn, balloon tooltips arrow position ( up or down)?
|
|
|
|
|
What is a "balloon tooltips arrow position?"
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
i want to mean the stem. But i solve the problem with another way.
|
|
|
|
|
Hi,
I want to write down the implementation of _stprintf. Can somebody send some source.
Thanks in advance
Abhi Lahare
|
|
|
|
|
Abhi Lahare wrote:
Can somebody send some source.
This article is starting point for your solution :-
http://www.codeproject.com/cpp/argfunctions.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
|
Thanks Chris,
I am looking for the implemenation of _stprint function for a embedded device. If you can point some source which gives a starting point it will be great.
Thanks in advance,
Abhi Lahare
|
|
|
|
|
void exitfkt(void)
{
MessageBox(NULL,"Unload Dll", "Test", MB_ICONINFORMATION | MB_OK);
}
MessageBox(NULL,"Unload Dll", "Test", MB_ICONINFORMATION | MB_OK);
}
// Loading of the driver at start of the driver
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch(ul_reason_for_call)
{
{
case DLL_PROCESS_ATTACH:
int ScoMSGetAS();
// unsigned short error;
unsigned short state;
// double value;
state = ScoMSGetAS();
if (state != SCO_ERR_OPEN_DRIVER)
{
return ScoOpen();
}
else return FALSE;
}
break;
case DLL_PROCESS_DETACH:
atexit(exitfkt);
break;
}
return TRUE;
}
This is not working for me
|
|
|
|
|
<br />
void exitfkt(void)<br />
{<br />
MessageBox(NULL,"Unload Dll", "Test", MB_ICONINFORMATION | MB_OK);<br />
}<br />
<br />
BOOL APIENTRY DllMain( HANDLE hModule,DWORD ul_reason_for_call,LPVOID lpReserved)<br />
{<br />
switch(ul_reason_for_call)<br />
{<br />
case DLL_PROCESS_ATTACH:<br />
{<br />
int ScoMSGetAS();<br />
<br />
unsigned short state;<br />
<br />
state = ScoMSGetAS();<br />
<br />
if (state != SCO_ERR_OPEN_DRIVER)<br />
{<br />
return ScoOpen();<br />
}<br />
else return FALSE;<br />
<br />
break;<br />
}<br />
case DLL_PROCESS_DETACH:<br />
{<br />
atexit(exitfkt);<br />
break;<br />
}<br />
}<br />
<br />
return TRUE;<br />
}<br />
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Oh yes thank you!!!
Had only one error left which i was able to fix =)
Thanks a bunch
If you d be fluffy i would give you a hug haha !!!
|
|
|
|
|
Hi!
I am loading a file into a CBitmap object, draw it and so on. Then I save it to my own file format and like to read it afterwards again. The saved values and loaded values are the same but I cannot create a bitmap from the loaded values.
Here is my code:
//read from my file bitmap header
fread(&bit,sizeof(BITMAP),1,f);
int bsize=bit.bmWidthBytes*bit.bmHeight;
//read bitmap bits
buf=(BYTE*)malloc(bsize);
fread(buf,bsize,1,f);
//delete previous bitmap
DeleteObject();
//and create new one
CreateBitmap(bit.bmWidth,bit.bmHeight,bit.bmPlanes,bit.bmBitsPixel,buf);
The result of CreateBitmap() is 1 so it seems to work. But my screen stays blank. When I remove DeleteObject and CreateBitmap and use SetBitmapBits with my loaded bitmap data then I can see my saved picture. This is because I overwrite the previous loaded picture.
The problem seems to be CreateBitmap...anybody an idea?
Please help!!
Thx
Flo
|
|
|
|
|
Floschi wrote:
I am loading a file into a CBitmap object, draw it and so on. Then I save it to my own file format
Can you show, how u are saving the bitmap?
<bold>- Nilesh
<italics>"Reading made Don Quixote a gentleman. Believing what he read made him mad" -George Bernard Shaw
|
|
|
|
|
Sure, but I checked the written and read data and its the same so I think this works. But here it comes:
BITMAP bit;
BYTE *buf;
//get loaded bitmap header
GetObject(sizeof(BITMAP),&bit);
int bsize=bit.bmWidthBytes*bit.bmHeight;
//get bitmap bits
buf=(BYTE*)malloc(bsize);
this->GetBitmapBits(bsize,buf);
//write
fwrite(&bit,sizeof(BITMAP),1,f);
fwrite(buf,bsize,1,f);
Hope it gives you an idea!
Thx!
Flo
|
|
|
|
|
Hi Expertise
Please help me how to create Popup Menu in Tree Control using MFC.
Thanks
Muru
|
|
|
|