|
saravanan_vv wrote:
file
[ReadDirectoryChangesW]
saravanan_vv wrote:
registry monitor
[RegNotifyChangeKeyValue]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Hi,
Is it possible to convert (or cast) an object of type CDialog to CPropertyPage during run-time ? The thing is that I want to be able to use a CDialog object as a page in a property sheet structue, so if anyone has an idea of what is the way to do it, I'll be glad if you could help me out here.
thanks,
yaron.
|
|
|
|
|
CDialog is the base of CPropertyPage, so AFAIK you should be able to cast from a CPropertyPage to CDialog with very few problems, but casting from CDialog to CPropertyPage will not work.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Hello all
I am making a client server application in which client will call system calls and send the information to server.
I want to store that information into database e.g Access using ADO( in VC++).
Plz guide me what should i do?
Do i have to do serialization of data?
e.g From client i have to send the the computer name and user name to server. how will i do this ?
how will i serialize data?
how will i use ADO? I am newbie plz be aptient with me and also tell me examples as well
Thanks a lot
|
|
|
|
|
|
Hi,
I created an application which creates a folder in the temp directory to store the temporary output files, at program startup. When I exit my application I want to delete the files as well as the folder. My application successfully deletes the files( I used DeleteFile() API), but not the directory. The RemoveDirectory() always fails. Why is it so? I have also tried using _rmdir() method.
void RemoveTempFolder(LPCTSTR dirName)
{
basic_string<TCHAR> stFolder;
BOOL bFinish = TRUE;
HANDLE hFind;
WIN32_FIND_DATA pFindData;
stFolder.assign(dirName);
stFolder.append(_T("\\*.*"));
if((hFind = FindFirstFile (stFolder.c_str(), &pFindData))== INVALID_HANDLE_VALUE)
{
return ;
}
while(bFinish)
{
if(_tcsicmp(pFindData.cFileName,_T(".")) != 0 && _tcsicmp(pFindData.cFileName,_T("..")) != 0)
{
basic_string<TCHAR> sTemp;
sTemp.assign(dirName);
sTemp.append( _T("\\"));
sTemp.append(pFindData.cFileName);
DeleteFile(sTemp.c_str());
}
bFinish = FindNextFile(hFind,&pFindData);
}
int nRet = RemoveDirectory(dirName);
if(!nRet)
DWORD dErr = GetLastError();
}
I also tried calling RemoveDirectory()from outside the function. Still the same result. Is there anything I am missing here?? Pls help.
Thanks,
Vini
|
|
|
|
|
Try after closing the search handle with FindClose().
suhredayan There is no spoon.
|
|
|
|
|
Thanks. But it didn't work. Still my temporary folder is not deleted.
Vini
|
|
|
|
|
Vinaya wrote:
DWORD dErr = GetLastError();
What is the value of dErr ? That would be a big clue as to why RemoveDirectory() is not working.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Better Forum for ask this type of question is LOUNGE
"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 find that my pointers are less likely to generate access violations if I use Courier.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
6 point Terminal
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
In my VS IDE, I use Lucinda Console - usually 10pt but if the resolution is higher I'll go up to 14pt
Michael
CP Blog [^] Development Blog [^]
|
|
|
|
|
Finding a good font is the first milestone in the journey of becoming a master craftsman. I don't think I was even a programmer till I spent a day making my own programming font in Softy 3 years ago. I still use it and it's still awesome.
|
|
|
|
|
Fixedsys 9.
I want a clean proportional font - found it to be the best.
More important is the colour scheme:
Background - light grey
Normal test - black
Comment text - dark grey (comments blend with background - don't detract from reading code)
Selection margin - light grey
Keyword - dark blue
Number/string - dark red
Operator - dark green
Wizard code - black
User keyword - light blus
Highlight values - black on whatever
...cmk
Save the whales - collect the whole set
|
|
|
|
|
I am using Visual Studio 6 to create my simple dialog-based program. In the setting, I have selected to "use MFC as a static library". After building, I get my Released version of my EXE program. This executiable file does run well on the PC on which I developed the program. However, for the PC without Visual Studio, I found the following problems
1. The EXE does not run at all on many Win XP or Win 2000 platforms where Visual Studio has never been installed before;
2. It seems that it is not because of the missing of certain DLLs. Usually when some DLLs are missing, there pops up a error message box saying which missing DLL is required, but in my case, just nothing happens when I double-click to invoke the program. I also downloaded dependancy analyzer software to see what system file is missing and try to add and register the missing system files manually, it is not useful at all.
If you have experienced the same problem and happens to know the solution, appreciate if you can share me with it.
|
|
|
|
|
Hello Dear
Can u tell me how to detact multiple VGA cards in Visual C++ or in Visual Basic.
Thanks a Lot
I will very thank ful to you for this consideration
Regards
Touqeer
Touqeer_khan@yahoo.com
|
|
|
|
|
but you are you shouting ????
|
|
|
|
|
but you are you shouting ????
|
|
|
|
|
Anonymous wrote:
but you are you shouting ????
Welcome Moderator!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
Check out EnumDisplayDevices() .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hey, so I am having a lot of trouble with DirectDraw surfaces.
I set up my surfaces like this
LPDIRECTDRAWSURFACE7 lpdds;
LPDIRECTDRAWSURFACE7 lpddsBack;
DDSURFACEDESC2 ddsd;<br />
<br />
INIT_DDRAW_STRUCT(ddsd);
ddsd.dwFlags = DDSD_CAPS | DDSD_BACKBUFFERCOUNT;<br />
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_COMPLEX | DDSCAPS_FLIP;<br />
ddsd.dwBackBufferCount = 1;<br />
<br />
if (FAILED(lpdd->CreateSurface(&ddsd, &lpdds, NULL)))<br />
return 105;<br />
<br />
ddsd.ddsCaps.dwCaps = DDSCAPS_BACKBUFFER;<br />
<br />
if (FAILED(lpdds->GetAttachedSurface(&ddsd.ddsCaps, &lpddsBack)))<br />
return 106;
Now I attach a clipper to the back buffer. I then Blt() some pictures from a LPDIRECTDRAWSURFACE7 (created using the dwCaps value DDSCAPS_OFFSCREENPLAIN) to the back buffer. Next, I call:
if (FAILED(lpdds->Flip(NULL, DDFLIP_WAIT)))<br />
return 201;
When I do that, the images I Blitted are displayed, and everything is fine. I then Blt() some more images onto the back buffer for the next frame of animation. When I call the flip command, my screen turns black. It's as if I cannot Blt() anything to the memory originally associated with lpdds (primary surface).
The really odd thing though, is that I have error checking on all my DirectDraw calls(With FAILED()) and nothing is returning an error.
Also, a few other pieces of misc data that might be useful, the LPDIRECTDRAWSURFACE7's are actually members of a class called GraphicsEngine. This class is in a .h file I am writing, but I am making the Flip() and Blt() calls from the main .cpp file. (I made everything public until I fix this problem)
If anyone can help me with fixing this, I'd really appricate it.
|
|
|
|
|
what does the membership function make?
help me.
thanks.
|
|
|
|