|
I'm guessing this is an MFC or .NET class. We're using just the straight WIN32 api. Nothing like that found.
I did find the GetFileVersionInfo() function, but it's not working since we don't have any version info resource in the child process executable. It may not be possible to do what I want without it, eh?
Thanks,
|
|
|
|
|
Well, I think I solved it...
What I have finally figured out is that you can export functions from a .exe. So, I created a header file that the .exe includes (indirectly, by other includes, so it will *always* be included) that exports a function. Then, I can call LoadLibrary() on the .exe, use GetProcAddress() to get a pointer to the exported function, then call it to obtain what I want, which is an integer value based on the version.
See my following post showing the .h:
http://www.codeproject.com/script/comments/forums.asp?forumid=1647&select=1304933&df=100&msg=1304933#xx1304767xx
|
|
|
|
|
how can i tell if a window from one application is blocking a window in another application using VC++ and WIN32 API
|
|
|
|
|
What do you mean with "blocking"? Intercepting WM_CREATE messages using Windows message hooks? Periodically checking for a specific window title and killing it if it matches?
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
is there any max limit for it??? or is it unlimited???
regards
Supriya Tonape
|
|
|
|
|
The MSDN docs says "REG_QWORD 64-bit number". Hence it's not unlimited, but limited to 8 bytes of storage. Little endian format.
--
Pictures[^] from my Japan trip.
|
|
|
|
|
For a SDI application, I can call AfxRegisterClass() in PreCreateWindow() to register class name. My question is -- how can it be done on a dialog based application since CMainFrame does not exist?
Thanks.
Vito
|
|
|
|
|
this is from the MSDN help for AfxRegisterClass:
BOOL COneT32App::InitInstance()
{
WNDCLASS wndcls;
memset(&wndcls, 0, sizeof(WNDCLASS));
wndcls.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
wndcls.lpfnWndProc = ::DefWindowProc;
wndcls.hInstance = AfxGetInstanceHandle();
wndcls.hIcon = LoadIcon(IDR_MAINFRAME);
wndcls.hCursor = LoadCursor( IDC_ARROW );
wndcls.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1);
wndcls.lpszMenuName = NULL;
wndcls.lpszClassName = _T("MyNewClass");
if(!AfxRegisterClass(&wndcls))
{
TRACE("Class Registration Failed\n");
return FALSE;
}
..
no mainframe needed
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
I tried it before but it does not work. I used SPY++ which does not show the class name I wanted.
If it's a SDI or MDI application, I can set the class name with the CREATESTRUCT structure in PreCreateWindow().
|
|
|
|
|
|
Hey,
how can I draw a edge or a rectangle with thick LINES and correct edge.
When I draw it with e.g.
CPen test(PS_SOLID,5,RGB(10,10,10))<br /> I have a edge with a fringe.
Thanx for helping me
|
|
|
|
|
I'm not exactly sure what you mean by fringe, but IF I'm right in interpreting your problem, you need:
CreatePen (PS_SOLID | PS_INSIDEFRAME, nWidth, clrBrightPinkWithGreenBits);
I hope that helped,
Iain.
|
|
|
|
|
are you talking about lines with anti-aliased edges, to eliminate the jagged stair-step edges ?
you might try using GDI+, which can draw anti-aliased lines.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Hi
Im testing my project in different OS.
My project needs to register a COM dll.
In Windows XP, and ME works great.
But in Win2K and 2003 server I can't register the dll.
If I do:
regsvr32 library.dll
I get "LoadLibrary("library.dll") Failed - Access Denied"
I'm logged as an Administrator, and tried registering an OCX and registered ok.
Any suggestion?
Thanks
Sebastian
|
|
|
|
|
Maybe a DLL that your DLL requires to load is not available on the systems experiencing failure.
Run Depends.Exe (Dependency Walker) to see which other DLL yours requires.
No shirt, no shoes, no brains, no service.
|
|
|
|
|
I needed to install ATL71.dll, now is all working
Thanks
|
|
|
|
|
I am looking for Visual C++ compiler if anyone has that or visual studio 6 please email me at Paradox998@aol.com.
Thank you
-- modified at 10:11 Friday 9th December, 2005
Thank you for your quick responses, was looking for a free vc6 if i cant use the msdn free download to compile it is missing nmake file i need.
|
|
|
|
|
You can find it on EBay[^]. I'm pretty sure it's also included with an MSDN Pro subscription.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
oh, seems that we are visiting the same sites
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
|
Hi all,
I have a crash dump which point to the following function :
string.erase()
does someone has any clue what could be the reason ?
I thought it a safe function , which is very straight forward to use
Thanks
|
|
|
|
|
hey guy, do you think you can help me if i give you such a line of code, just looking normal ?
give us the error/exception message and the context this line of code is called (provide a piece of the code around it - but not the entiere file !!!)
moreover, tell which string class you are using (CString, std::string, or any else...)
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
Hello Sir,
in my application i have to interact with C from my VC++ GUI,i have to set intials to variables in C from VC++, and control the C program from GUI like compiling, sending intial values, read data, and output should again send to VC++.
How can link these two.
Thanking you.
sheshidar patnam
|
|
|
|