|
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
|
|
|
|
|
I need a c++ source code that will create a simple triangle in an x-y plane so that scaling, rotation and translational transformations can be carried out on it... any help before thurs, Please? thnx
|
|
|
|
|
On Windows using the Win32 API you can start looking at the SetWorldTransform[^] function.
Steve
|
|
|
|
|
I'm not sure what you're after.
To draw a triangle, you need a drawing surface, so if you're using MFC, you need a view class.
For your actual question, you just need to store 3 sets of X/Y coordinates however you like.
For a code sample, have a look at:
http://www.codeproject.com/KB/recipes/CoordWarp.aspx[^]
It's got lots of points making up long lines - but you can use just 3 if you like...
(Hint, Polygon, with n = 3)
Good luck,
Iain.
Codeproject MVP for C++, I can't believe it's for my lounge posts...
|
|
|
|
|
I'm developing a small app for WM5 and it is using FindFirstFile() and FindNextFile().
These work just great in the WM5 emulator in debug mode.
I created a CAB file and ran it on my Axim, but it didn't work correctly.
I left the state to Release, as opposed to Debug and ran it in the WM5 emulator, and got similar problems.
I think this is working differently for more then just these, but I'm not sure.
The code I am having problems with is looking for a specific file by pattern, and then looking to see if there are others that follow the same pattern; I'm looking for the newest dated version of the file that fills the pattern.
like \Windows\abc*.txt
it works great in debug mode on the emulator,
but not so on my Axim or in release mode on the emulator.
Does anyone know what is happening here?
|
|
|
|