|
john john mackey wrote: I have used message boxes/print statements in place of breaks to see if code reached
It could be possible that message boxes are unable to be created. Why don't you instead try using OutputDebugString() ? Are you sure this is not a problem with Debug/Release builds?
Waldermort
|
|
|
|
|
Is there any way to hide a process (not window) from the windows task manager?
Nice Guyz go to heaven, Bad guyz go wherever they want.
|
|
|
|
|
Why would you want to do something like that? One suspects for evil purposes...
Steve
|
|
|
|
|
|
No because maybe you can to hide it of Task Manager but other programs can to see it.
|
|
|
|
|
I just jumped into this project, for years the rule was "never delete a line of code". You can imagine the mess and how hard it can be to find the "right" function actually called for a task.
Does anyone know of a tool that will list me all classes, members, functions, struct, etc... that are NOT called or used by anyone else? Something like a linker option perhaps? Project is compiled under Visual Studio 2003.
I tried a few code mapping tools, but with 600K+ lines of code, thousands of classes and fucntions in hundreds of libraries, I need a black-list not a withe-list to compare too.
Thanks,
AFN
|
|
|
|
|
You could try using Visual Assist from www.wholetomato.com
Waldermort
|
|
|
|
|
Is there any API from which i can get the name of Service under which an executable is running .Pls help me.
Thanx
Sunit
never say die
|
|
|
|
|
|
Thanx a lot
never say die
|
|
|
|
|
|
Hi everybody;
When I try to create a new project (c#,c++ etc.) on Microsoft Visual Studio Professional edition, I got this error message "Requested registry access is not allowed!" and creation of new project fails.
My OS is Windows Vista Home Basic. This problem appeared recently but I cannot fix it.
What can I do? Any suggestions?
Thanx everybody for reading...
|
|
|
|
|
Are you running VS as an administrator?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
Yes my friend, I also try it!
I make a bit research in Registry for example under HKEY_CLASSES_ROOT some key start with ._sln* are not accessable. Maybe it is a clue?
|
|
|
|
|
Thanks for putting up with my many queries.
I have reached this stage:
// wn = the handle of the current window
#define OUCH MB_ICONEXCLAMATION
HDC dc=GetDC(wn); HDC dc2=CreateCompatibleDC(dc);
char t[256]; BITMAP bm;
.... // Here I set the elements of bm
sprintf(t,"%d: %d * %d, width = %d, %d planes, bpp = %d, pixels at %d",
bm.bmType,bm.bmWidth,bm.bmHeight,bm.bmWidthBytes,bm.bmPlanes,bm.bmBitsPixel,int(bm.bmBits));
MessageBox(0,t,"set up hbm",OUCH);
// This displays 0, 600, 600, 1800, 1, 24, 28180544 :: all correct as far as I can see;
// here 28180544 pointed to the pixel array of a valid image (a CGI image of two frogmen)
HBITMAP hbm=CreateBitmapIndirect(&bm);
BITMAP bm3; GetObject(hbm,sizeof(BITMAP),(void*)(&bm3));
sprintf(t,"bm3 is type %d, %d * %d, each row %d bytes, %d planes, bpp=%d, pixels at %d",
bm3.bmType,bm3.bmWidth,bm3.bmHeight,bm3.bmWidthBytes,bm3.bmPlanes,bm3.bmBitsPixel,int(bm3.bmBits)); MessageBox(0,t,"size",OUCH);
// This displays 0, 600, 600, 1800, 1, 24, 0
Please, what happened to my image's pixel array or its address?
|
|
|
|
|
You're only guaranteed to get a pointer to the pixel bits with a DIBSection.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
At last, thanks, it works, and I duly got my image back with "The quick brown fox jumps over the lazy dog." written on it, as a text run.
|
|
|
|
|
I am trying to cache icons but when I store the HICON, the second time around, I get no icon. I think I need to copy the data referred to by the HICON into my cache rather than store the actual handle. How would I copy the data?
|
|
|
|
|
I answered my own question, CopyIcon does the trick!
|
|
|
|
|
Hi.
I have created a console application which reads a file from the local disk and does certain operation on the data. where i need to specify the path of the file.
Now i have to create a dll file and i have to pass the path of the file as a parameter to the dll, But if i declare CString to hold the path it gives an error : undeclared identifier / no such directory of files found.
please help me asap.
|
|
|
|
|
did you include <afx.h>
and by the way you shouldn't be using a CString variable to be passed as a parameter. better use BSTR
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
I tried using BSTR but it is giving error in header file. can anyone suggest the solution, its very urgent..
with regards
vinay
|
|
|
|
|
include 'comutil.h' and link to comsupp.lib to use BSTR's.
vinaykskvs wrote: its very urgent..
Should have resisted posting to this URGENT question but since I had already answered previously, had to follow this up.
Who suggested that you should be using CString variable to be used as a parameter while passing it to a different dll
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
change the property setting
give MFC shared dll ..
and then add afx .h header file ..
i think it ll work fine...
|
|
|
|
|
Are you even using MFC as others have assumed?
What version of Visual Studio? CStringT has been a template class
for a few versions of VC++. The appropriate header for a non-MFC
CString is atlstr.h.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|