|
|
I am working on Word object. My problem is to move the cursor position to word endings. For that i try Moveright ,Endkey ,move .... like in vc++
please help me if any one know this.
Thanks in advance
|
|
|
|
|
Viknaraj R wrote: i have to create a new lexer? if have to create which procedure i have to fallow?
Which language ? Word Macro ?
|
|
|
|
|
|
Lord Kixdemp wrote: Hey, is it possible to make a 2D game (transparent sprites, sound, keyboard input, etc.) with just C and the Windows API? Like, no C++ and no MFC.
Yes.
Lord Kixdemp wrote: I looked for tutorials, but I don't know if I should use GDI or not.
GDI is rather slow but maybe enough for simple games. You have to use either DirectX library or OpenGL one to make professional looking ones.
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.
|
|
|
|
|
Yay, thanks!
Windows Calculator told me I will die at 28.
|
|
|
|
|
Lord Kixdemp wrote: ith just C and the Windows API?
You could even do it in VB, if you want.
Lord Kixdemp wrote: I should use GDI
Is GDI really in C ?
Lord Kixdemp wrote: 16-bit Windows
Are you living under a rock ?
Lord Kixdemp wrote: Windows Calculator told me I will die at 28
I have seen weird sigs in my life, this one beats them all, I guess.
|
|
|
|
|
Rage wrote: Is GDI really in C ?
Why not?
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.
|
|
|
|
|
That was a question, I assumed it was written in C++.
|
|
|
|
|
Rage wrote: That was a question, I assumed it was written in C++.
It doesn't matter, the OP wants to use C, not libraries written in C.
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.
|
|
|
|
|
And how do you link a library written in C++ with a C program
|
|
|
|
|
Rage wrote: And how do you link a library written in C++ with a C program
You don't need a big effort : GDI (note GDI , maybe your're talking about GDI+ ) exports C-style API.
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.
|
|
|
|
|
Rage wrote: Are you living under a rock ?
Yes, sadly... I've liked old computer stuff ever since I visited that thrift store when I was 14.
Windows Calculator told me I will die at 28.
|
|
|
|
|
Currently I have constucted a DLL in VC++ 6.0 in which does not uses MFC.
I have chosen Win32 Dynamic Link Library template from new project dialog box.
Now, only one function is exported from the DLL. In that function I am bringing up an Dialog Box using DialogBoxParam() function. Dialog resource is stored in the DLL itself.
DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_DOCONVERTDIALOGBOX), <br />
NULL, DoConvert_DlgProc, (LPARAM)(&pDlg));
I have also added a dialog box with ID 'DOCONVERTDIALOGBOX' in the resource of this DLL project.
* DialogBoxParam() returns -1.
* GetLastError() returns 1814 (ERROR_RESOURCE_NAME_NOT_FOUND)
I think if I add AFX_MANAGE_STATE(AfxGetStaticModuleState());
then it will take the resource from DLL. But AFX_MANAGE_STATE is MFC related.
And I am not using any MFC related function nor my DLL project is using MFC.
So how can I load the dialog resource from DLL.
Thanks in advance.
|
|
|
|
|
ccpptrain wrote: DialogBoxParam(hInstance,
How are you getting the instance handle? It should be the one you get in DllMain as an argument.
|
|
|
|
|
|
I am passing NULL for instance.
Well, I will try your suggestion
|
|
|
|
|
Thanks Nibu it is working.
|
|
|
|
|
Figure out what is done the the macro.
Greetings from Germany
|
|
|
|
|
How can I instruct Visual Studio 2005 to include a certain DLL as a compile-time dependency of the EXE even though my code never calls any functions in the DLL?
It's a resource-only DLL, but I want Windows to load it into the process when the process launches without me having to call LoadLibrary.
I figure since no functions are ever called, the linker would ignore it by default.
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
If it is a resource dll you need the HANDLE to set it to "Current Resource Handle".
If you only need the resources, you can also change the resource code of your exe module.
Greetings from Germany
|
|
|
|
|
Maybe export one function - the function could just return the HMODULE for the DLL, which you'll
need anyway. Create an import library in the DLL project and link to that library in your app
project.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Place the following in one of the source files for your exe:
#pragma comment(lib, "mydll")
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Thank you! That seems to be the best solution!
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Hi,
I have a CListCtrl with the option "show selection always" enabled. If the cotrol lose its focus the selection is become gray. Is there any solution to keep the selection always highlighted (blue default color) even the focus is lose ?
Regards,
sdancer75
|
|
|
|