|
meirav wrote:
int x; extern int x
hmmmm...
dont put both in the same file.
file1.cpp -> declare it there :- int x;
file2.c -> extern "C" int x;
Try that.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
If I have 2 radio boxes and I want to make sure the user can check only one of them at a time (ie if the user checks one, the other gets automatically unchecked).....then how do I do this?
Thanks.
|
|
|
|
|
lets say you have two pairs of 3 radio buttons [thus 6 total].
use the WS_GROUP style for the 1st and 4th.
Now you have two sets of 3-mutually exclusive radio buttons
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
If you mean radio buttons, then have them on a group box.
|
|
|
|
|
It seems if you place your group boxes with radio buttons in another group box, you can check only one button at a time effectively checking one group at a time. It needs a SetCheck() on the first button you want to start with.
|
|
|
|
|
The "group" attribute controls which radio buttons are linked up. It has nothing to do with being in a group box like the previous posts have said. The first radio button must have the group attribute set, the others must not have it set, then the control right after the last radio button in the tab order should have it set to mark the end of the group.
--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
|
|
|
|
|
Hello,
I am interested in using the MSXML parser using VC++. It seems there are endless books on the subject for VB and every other language, but I haven't been able to find one for VC++ specifically. I know many code sites (MSDN, CodeProject, etc.) have articles, but I would prefer a book. Can anyone suggest a book that focuses on the MSXML parser and VC++ (not .NET)?
Thanks!
Derek
|
|
|
|
|
Hi Derek
You are correct there. Nearly all the documentation on MSXML is about VB. I had this same problem an year ago.
I finally ended up using Expat - an XML parser library in C
I believe that since then there is Expat++ which is a C++ class library
I'd recommend Expat unless you very specifically want to use MSXML
Regards
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
I would be suprised to find one. Using it in VC++ is just like using it in VB. Import it, create an instance and call its member functions (just like all other COM objects).
Hope this helps,
Bill
|
|
|
|
|
Hi all,
anyone know how to control an Excel sheet (if it is possible), create cells, create table, color it and similar...
thanks a lot.
|
|
|
|
|
http://support.microsoft.com/support/kb/articles/q199/6/91.asp
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
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!
|
|
|
|