|
How would I go about (Win32) getting a handle to part of a bitmap, say the first 100 x 100 pixels?
|
|
|
|
|
Hi,
Got a bit of a perplexing problem. I'm building a Unicode DLL, which is linking to a lib I've built (also Unicode, obviously). If I build the DLL without referencing the lib, it builds perfectly. However, when I link in the lib, something in it is causing the non-Unicode MFC libraries (nafxcwd ) to be linked in too, causing the error:
LINK : warning LNK4098: defaultlib 'nafxcwd.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
However, both DLL and lib are compiled with _UNICODE defined, and the lib's compiled with /NODEFAULTLIB, so I can't work out where the reference to the non-Unicode symbol is coming from. I've tried linking with /VERBOSE:LIB, but it doesn't seem to be giving any clues.
The question is, how can I find out what symbol is causing the linker to search in the nafxcwd library? Is there any linker option which will show me which symbol is being searched for when each library is being searched? Any other easy ways of solving this?
Thanks
Mark
|
|
|
|
|
Hi guys,
My MFC based activeX control exposes a method which is suppose to return a HRESULT.
how can this be implemented, When I try to add a method to my control I do not have the option of
selecting HRESULT as a return type.
Does OLE have its own version of HRESULT ?
|
|
|
|
|
I create modeless dialog. In this dialog I create a "APPLY"
button. I define a use defined message" WM_APPLY".
I want the "WM_APPLY" message sent to Doc or View class.
but acually it sends it to Mainframe,the MainFrame use
OnCmdMsg to send it Doc or View. How Can I directly
send "WM_APPLY" to View or Doc class not through MainFrame's
OnCmdmsg.
Your Answer will be appreciated very much.
wuwenguo
|
|
|
|
|
What class creates the modeless dialog box? For example, if it is created in a view class, then one solution is GetParent() and GetSafeHandle(). Otherwise, you should send a message to main frame.
Kuphryn
|
|
|
|
|
What are Crystal Reports and what are they used for??
Where can I found out info on creating them??
Thanks,
grahamoj.
|
|
|
|
|
|
This is something I noticed about using ShellExecute() and CreateProcess(). When I have this:
cout << "Start..";
ShellExecuteEx(/* I call notepad or something here!! */);
cout << "End..";
It calls the ShellExecuteEx function first and THEN the FIRST cout statement and then the SECOND cout statement i.e
(displays the notepad.exe)
Start..
End..
How do I get it to call the first cout statement, then the ShellExecuteEx() and then the second cout statement??
Also how do I get the notepad.exe to exit when I am finished doing what I do with it, in the program??
Thanks,
grahamoj.
|
|
|
|
|
Interesting. Set a delay timer right after "Start.." and see if the console displays it. Maybe it displays it so quick that you miss it.
Kuphryn
|
|
|
|
|
Flush the output stream after each line, by adding endl :
cout << "start" << endl;
ShellExecute(...);
cout << "end" << endl;
--Mike--
THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Homepage | RightClick-Encrypt | 1ClickPicGrabber
"You have Erica on the brain" - Jon Sagara to me
|
|
|
|
|
Thanks, that worked..
grahamoj.
|
|
|
|
|
I want to create a modeless dialog from Mainframe.
I use the following statement,I don't want to use Create
Method,I prefer to use CreateEx,because I want it to be positioned anywhere on the screen. but it fails
Please tell me the reason.
m_pDlg->CreateEx(WS_EX_CLIENTEDGE,_T("ModelessDialog"),NULL, WS_POPUP|WS_VISIBLE,rect,this,
IDD_MODELESS_DIALOG);
wuwenguo
|
|
|
|
|
|
Hi, again me
I need to learn how to make a simple dialog based window application in C++. I do not want to use MFC or any wizard. As I know I need to open I win32 empty project and add a source file. Then write WinMain function and do not create a window but call DialogBox function but how to get messages and how to destroy when close dialog. Ok
if you know any tutorial or any sample project please sent me.
karanba
|
|
|
|
|
This website helped me a lot when I started to learn Windows API.
http://www.winprog.org/tutorial/
I hope you find it as helpfull as I did.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
Hi, Everbody.
I am trying to do a simple screensaver by using scrnsave.lib. I am coding in VC++ 7.0 but not managed C++ or C#.
I only want to show a text in the window. Do you have any sample project.
karanba
|
|
|
|
|
|
hey do anyone know about sms messaging from a vc+ winsock application .
|
|
|
|
|
no
|
|
|
|
|
You can find some shareware and commercial SMS libraries here.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
hi,
i am new to vc++,i am trying to add two dates but i could not get it.can anyone help me in solving this?i want to add two dates and store it in a variable (of any type), like datediff in vb do we have any such functions in vc++?
thanks in advance for all
|
|
|
|
|
See the CTimeSpan class. There are also a bunch of articles right here at CP!
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
I have programmed a MFC application under Win XP, and now i try to run my app on Win98.
I have copied the following files to the win98 system dir:
MFC42.dll, msvcp60.dll, msvcrt.dll
I get the following error:
The MSVCRT.DLL file is linked to missing export NTDLL.DLL RtlGetNtVersionNumbers
With Dependency Walker i see that the version of ntdll.dll not correct is for my app. When i copy a newer version of ntdll.dll to the system dir, windows doesnt start correctly.
Thanks for helping me!
Willem
|
|
|
|
|
I think I had a problem like yours with windows nt a couple of years ago and after several attempts I realized that there was no way around it (for me at least). My assumption was that ntdll.dll for windows 9x is not compatible with windows nt's. I hope someone has a solution for your question.
// Afterall I realized that even my comment lines have bugs
|
|
|
|
|
I'm doing a project where i have to keep reading a struct from the disk and i have to keep doing this until i come to a special set of bits. I don't know how many structs are on the disk so i need to be able to do something like this:
unsigned int num_structs = 0;
struct_name *the_struct;
do
{
num_structs++;
the_struct = realloc(sizeof(the_struct)*num_structs);
read_struct(&the_struct[num_structs-1]);
} while (nextbits() == 'whatever')
Where the function realloc will preserve the data already written in the memory area. Is this possible?
thanks!
|
|
|
|