|
I use ShellExecute to execute IE opens some CGI script like:
HINSTANCE result = ShellExecute(NULL, _T("open"), mUrl, NULL,NULL, cmdshow );
Is it true?
And when I created, the handle is result?
And how to close this dialog by coding in my program?
Please help me! thank you very much!
|
|
|
|
|
The HINSTANCE returned is dummy. Ignore it.
I'd advise you to use ShellExecuteEx
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi folks
I have a guestion, How to save CBitmap object as a bmp file?
Mike
|
|
|
|
|
Read the FAQ.
Christian
After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
Does anybody knows tools for detecting resource leaks under 9x?
|
|
|
|
|
|
10x Eugene,
I suppose you mean Numega BoundsChecker, unfortunatelly it doesn't work under 9x, not even Mutek Bug Trapper
|
|
|
|
|
I have DLL with some functions .
I wrote in vc client program and I need to create Dynamic linking .
How have do it ???
====================================================================
I tried write so :
--------------------
typedef DWORD(SQRTPROC) (DWORD,char*);
HINSTANCE hInstance;
SQRTPROC* pFunc;
VERIFY (hInstance = ::LoadLibrary("c:\\windows\\system\\myDLL.dll"));
VERIFY (pFunc = (SQRTPROC*) ::GetProcAddress(hInstance, "Func1"));
DWORD a = (*pFunc) (1, str); // Call the DLL function
===================================================================
and I got the error :
error LNK2001: unresolved external symbol _Func1@8
|
|
|
|
|
Most likely you have left some missing call to Func1() when you decided to switch to dynamic linking. Remember now all calls to this functions must be thru the pointer pFunc . You have two options:
- Globally replace all calls to
Func1() with appropriate calls to the pointer,
- write a little wrapper named
Func1 that internally uses the pointer.
Ellaborating on the second solution, you can even consider doing what's called lazy initialization and load the function only when first needed, like this:
DWORD Func1(DWORD dw,char* pch)
{
static SQRTPROC* pFunc=(SQRTPROC*)::GetProcAddress(hInstance, "Func1");
return (*pFunc)(dw,pch);
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thank you !
I realy have left some missing call to Func1() .
Now it passed compilation successfully.
But I have a new problem with it .
I send it in a new thread.
|
|
|
|
|
I want to write a VC++ program, that can delete some file in system folder like: C:\\windows\\temporary internet files\0
I use some code like that
SHFILEOPSTRUCT sh;
sh.hwnd = GetSafeHwnd();
sh.wFunc = FO_DELETE;
sh.pFrom = "c:\\windows\\temporary internet files\\*.gif\0";
sh.pTo = NULL;
sh.fFlags = FOF_NOCONFIRMATION | FOF_SILENT;
sh.hNameMappings = 0;
sh.lpszProgressTitle = NULL;
SHFileOperation (&sh);
But happens a error: can not delete file : file system error (1026)
Default Internet Explore is IE. When I use Netscape like default I can delete some files!
Any ideas?
Thank you!
|
|
|
|
|
I'm not sure about this but if IE makes the files unwrite able (write protected) the files perhaps wont be deleted. I don't know the SHFileOperation() func so much so I can give you a direct answer!
See if it is like I said!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
There are no files in Temporary internet files. Look at it in a DOS box to see. There are several subdirs under that that actually have the files.
--Mike--
http://home.inreach.com/mdunn/
While I can't be correct on all matters, I can make the reassuring claim that where I am inaccurate, I am at least definitively inaccurate.
your with and
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Hi,
i would like to build a program to make plays for american football. i'm looking for a convenient way to loop through the play.
Every 50 msec, i would update the positions of the players. the players would be in a database and contain all different kinds of attributes like speed, strength. Speed would be for instance: he runs 40 yards in 4.8 seconds.
This means 8.33 yards in 1 second, leading to 0.41667 yards in 50 msec.
(correct me if i'm wrong)
So with the appropriate interval (50 msec?) and conveniently chosen coordinate system, calculating & plotting the new position should be pretty easy? (players will run along a route that can be drawn)
What's the easiest way to translate this info in a new position on screen of that player?
Do i change the screen coordinates in centimeter of feet (doesn't really matter for me if it's metric or not, it's the method that counts)?
Another thing i would like to add later on is acceleration. For instance,
it takes player x 1.2 seconds or 10 yards to reach his full speed.
Any ideas on that?
Any links to articles on these kinds of problems are also welcome.
Thanks for any info!
|
|
|
|
|
Hi,
I have written a code in VC++ to solve a puzzle.We need to integerate this with our educational site.This site is developed on Oracle8,ASP and VB.Please could you help me how to do it.
|
|
|
|
|
Maybe you can turn your VC++ program into a COM object so that VB could use it. Maybe a simple non-mfc dll will do the trick.
|
|
|
|
|
Hi,
Thanx!
But i am a beginer and i am not familiar with COM and could you please elaborate more on that non-mfc dll.
Bye
|
|
|
|
|
Sorry, it is not a non-mfc dll. It is a MFC regular DLL.
A regular DLL can be linked to MFC dynamically or statically. It uses MFC internally and the functions
it exports can be called by either MFC or non-MFC executables. The client program can be written in any
language that supports the use of DLLs (C, C++, Pascal, Visual Basic, etc.); it need not be an MFC
MFC application. Please refer to MSDN documentation for further details.
|
|
|
|
|
A non-MFC DLL is a DLL that does not use MFC internally, and the functions it export can be called by either MFC or non-MFC programs. Functions are usually exported from a non-MFC DLL using the standard C interface.
Since your program is in VC++, you might want to try MFC regular DLLs.
A regular DLL uses MFC internally and the functions
it exports can be called by either MFC or non-MFC executables. The client program can be written in any
language that supports the use of DLLs (C, C++, Pascal, Visual Basic, etc.); it need not be an MFC
MFC application. A regualr dll cannot export MFC objects. Please refer to MSDN documentation for further details.
|
|
|
|
|
Hi VC Student
I wrote a simple project by MFC dialog based exe.
Now i want to write it again in .DLL in VC++.
Our Delphi programmer could use of my DLL, only by LoadLibrary function ...
Can you tell me how could i do it, please ?
First problem is, Because LoadLibrary can load functions from DLL.
And in MFC i used classes !
Second problem is, I heard other programming languages like Delphi cannot use the MFC DLL extension ...
Could you tell me how can i do that ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi! all,
How we can determine programatically whether the system is in DOS Mode(Full Screen) or Windows Mode, using WIN32 programming supporting OS from Win95 to WinXP? Thanx in advance..
Debabrata.
Debabrata Debnath
India
|
|
|
|
|
The following functions may be of use :-
GetConsoleScreenBufferInfo
GetLargestConsoleWindowSize
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
how to deal with taskbar programmatically?
such as add or delete item from it,hide or how it,and so on.thanks
|
|
|
|
|
Hi everybody,
For my application, i need to calibrate some parameters, some technical articles explain that i should use a minimization method which is called Levenberg-Marquart method. I show an explanation coming from numerical recipes in c, but i don't have the book with all the library i will need. And, as i'm not a specialist in this kind of code, i'm not sure that i understand all the code given in the article. So, i would like to know if someone could help me to understand the code;
thanks in advance
gerald
|
|
|
|
|
I want to monitor a RAS connection (received and send bytes). I try with CRasMonitor but it not work in w2k.
misu
|
|
|
|