|
Check out the following APIs
GetFileVersionInfoSize
GetFileVersionInfo
VerQueryValue
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
CodeProject has articles showing you how to do that.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hi,
I have been posting messages re: WIN32 C app my last few question have been regarding Calculating the number of characters in the edit control of a Rich Edit Dialog Box
All of the really nice pepole here have been sending me code snipts to help me out however most of the Code was of the MFC variety
In order to get with the program I decided to re-write my C app using the MFC classes as opposed to plain old WIN32 SDK api's
So now getting back to My orignal Problem I have been using WM_SETTEXT and EM_REPLACSEL meesages to highlight certian pieces of the Dialog Box
Now that I am using the methods to the base Class CDialog
seems using the DDX macros is the way transfer data as opposed to
WM_SETTEXT and WM_GETTEXT
will DDX still work To HighlIght data using EM_RELACESEL ????
thankx Again
|
|
|
|
|
Why don't you try it?
Why don't you use CRichEditCtrl::ReplaceSel [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
thankx it takes a while to get into a new way of thinking
|
|
|
|
|
Well, you haven't: Win32 programming is amazing...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I meant OO Derving a CWND and using the methods as opposed to C calls
|
|
|
|
|
I've started a new website and I am looking for members interested in programming and linux. We are needing people who have the desire to learn linux on a higher level. Subdomains, FTP accounts, and web space for members will be offered sparingly to those seriously interested.
datdirt.com
|
|
|
|
|
Your message has been reported as abuse.
Please read carefully Chris message at the top of the forum before posting.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Yeah I'd seen that that was sitting there for awhile and thought I was missing something Looks like I wasn't.
Regards,
--Perspx
|
|
|
|
|
Hi Guys
I have a business full screen appliection (A.exe) run in Windows 98.
I need a hotkey when the appliection is running,Press SPACE key ,Excute a Dialog based program "C.EXE".
I try to use "RegisterHotKey" function ,But the hot key does not work.
Now I try to use Keyboard hook, I create a Dialog based program "B.exe" and "B.dll",When "B.exe"
excuted,It launched hook callback function in "B.dll".
Excute Sequence :B.exe A.exe
when A.exe is running ,I press SPACE key,the hook function catch the keyboard message,
it call C.exe (use the "ShellExcute"),The window of C.exe appear.
Qustion: The window of "C.exe" isn't current active window.the window of "A.exe" is active windows yet!
I need the window of C.exe is active when it appeared.
LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
{
BOOL fEatKeystroke = FALSE;
PKBDLLHOOKSTRUCT p = NULL;
if (nCode == HC_ACTION)
{
p = (PKBDLLHOOKSTRUCT) lParam;
switch (wParam)
{
case WM_KEYDOWN:
if (p->vkCode == VK_SPACE)
{
return 1;
}
break;
case WM_KEYUP:
if (p->vkCode == VK_SPACE)
{
ShellExecute(NULL,"open","C:\\C.exe",NULL,NULL,SW_SHOW);
HWND h=FindWindow(NULL,"Caption of C");
if(h)
{
ShowWindow(h,SW_SHOW);
}
return 1;
}
break;
default:
break;
}
}
return (CallNextHookEx(glhHook,nCode,wParam,lParam));
}
void _stdcall StartKeyMask()
{
glhHook = SetWindowsHookEx(WH_KEYBOARD_LL,LowLevelKeyboardProc,glhInstance,0);
}
void _stdcall StopKeyMask()
{
if (glhHook!=NULL)
UnhookWindowsHookEx(glhHook);
}
modified on Sunday, February 22, 2009 10:53 AM
|
|
|
|
|
|
use " SetForegroundWindow" no effect
thank you
|
|
|
|
|
|
As i do implement my software for several platforms, i am using different IDEs / SDKs on the PC, not all of them have the STL or infact C procedures like strtok or strchr implemented.
As i do not want to reinvent all of this again, i would like to ask, if there is open / free STL source which i could include for those projects which base on let say a C++ Compiler with not relying on standard procedures (like strcpy).
I found a product called STLport. Would i be able to adapt this for my needs.
Compilers used are the VC6, VS2005 and gcc.
|
|
|
|
|
AFAIK all the compilers you mentioned provide STL support.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi i am creating a component ,
but having some linking error . I have commented this "OBJECT_ENTRY_AUTO(CLSID , uuid(***))" and my code is building , Please tell me will there any impact of this later.
what is the use of OBJECT_ENTRY_AUTO
|
|
|
|
|
Usually, before commenting out a line of code, it is wise to have a look at the error message.
As about OBJECT_ENTRY_AUTO , it is a ATL secret [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I am wondering who can help me.
if((fp=fopen("E456.cpp","r"))!=NULL)
{
while(!feof(fp))
{
int i=0;
char ch;
while((ch=fgetc(fp))!='\n' && ch!=EOF)
buff[i++]=ch;
::TextOut(hdc,cx,cy*nLineNumber,buff,i);
nLineNumber++;
}
fclose(fp);
}
The above is my code ,I want to find the '\t',and then i can print the file content out with some space.but i just can't.Where is the key? Is there are some people to help me?
modified on Saturday, February 21, 2009 10:26 PM
|
|
|
|
|
if (ch == '\t')<br />
{<br />
buff[i++] = ' ';<br />
buff[i++] = ' ';<br />
buff[i++] = ' ';<br />
buff[i++] = ' ';<br />
}<br />
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Thank you very much,You are very friendly,and helpful.
|
|
|
|
|
Hi Guys,
I am wondering if anyone can give me the scoop on this.
I am developing a dll file and I have some very good developers telling me that if I develop the dll in Visual Studio 2005/2008 in win32 unmanaged c++ that the dll will not work on win98/me and that it will be dependant on MSVCP80.DLL. They tell me that if I develop the dll in Visual Studio 6.0 that it will work on older operating systems like win98/me and it wont be dependant on MSVCP80.DLL.
Now is this true? and if so is there anyway that I can develop the dll using visual studio 2005/2008 so that it will still work on win98/me and NOT be dependant on MSVCP80.DLL?
Thanks,
Greg
|
|
|
|
|
The only way to develop using VS2005/8 and not be dependent on the C/C++ runtime library is to avoid any references to it.
How important is it to maintain support for Win98/ME?
|
|
|
|
|
Dependencies are inevitable.
That's why an installation package is created to distribute an application.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I believe you can statically link the C and C++ run-times into your DLL, so it won't try and load the VS2005/2008 DLLs when it's used.
If you do this, you need to take care with memory management of objects passed back from your DLL.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|