|
struct server
{
int server_ID;
int server_speed;
int operator==(const server&);
server& operator=(const server&);
}
Why the operators ?
for (int i=0; i >= server_num; i++)
Don't you mean <= ???
servers.push_back (server_ID); // inputting data into list
servers.push_back (server_speed);
Shouldn't you put this info into an instance of your struct and push that back ? How can you tell what in your list is an ID and what is a speed ?
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
Hello all,
I've wrote simple C++ program for Ms-Dos mode.
I wanna know, is there any way to run this program at startup ?
When the computer boots, and after the system checked the RAM and BIOS and CMOS, like Setup supervizer password.
I don't mean windows start up
Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
If you are talking about Windows 95,98,Me, you can still put things in Autoexec.bat, I believe.
You can pick your friends, and you can pick your nose, but you can't pick your friend's nose.
|
|
|
|
|
Hello Navin, thanks for reply.
But i wanna run exactly after RAM testing !
as i said, like Supervizer password in Setup.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hahahahahhaha. This just shows me how old-skewl I am.
Put it in the autoexec.bat file.
|
|
|
|
|
Hello Scorp1us, thanks for reply.
But i wanna run exactly after RAM testing !
as i said, like Supervizer password in Setup.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Can't do it uh-uh no way in hell. You'd have to write your own BIOS. Maybe the [Open|Linux]BIOS project may be of help?
Short of that, you could write your own boot loader to take over the PC as soon as it comes out of BIOS code. There you have LILO or GRUB (Both opensource linux boot loaders) as options.
|
|
|
|
|
OK, Thanks for information
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
on NT/2000 u can run it as an NT Service using the srvany utility. on 9x/me u can put it in the startup group
"No matter where you go, there your are..." - Buckaoo Banzi
-pete
|
|
|
|
|
No. You can't get it to be executed by the bios, unless you can burn your own bios. You are asking to run a program off disk, before the system knows how to access the disk. It needs to boot first.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
OK
Thanks alot !
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
CBitmapButton seems to be wired to use bitmaps which are resources within the application.
My question is if I have those bitmaps on the disk , can I do a LoadImage
and use the HBITMAP's on the CBitmapButton ?
Amit
|
|
|
|
|
Is there any free library or code available that can be used to burn CDs on Windows earlier than XP.
If you know any such resource then mail me.
-----------------------------
In my dream, I was dorwning my §orrow§
But my §orrow§, they learned to §wim
|
|
|
|
|
NERO has a burning SDK.
Go search their homepage!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Tili wrote:
Is there any free library or code available that can be used to burn CDs on Windows earlier than XP.
Please Google for CDRecord (or cdrtools).
|
|
|
|
|
I am getting an Illegal Instruction error during StreamIn to a RichEdit control when the formatted text data is about two pages. I know that this has something to do with the size of data because I did not get any error messages when StreamIn a smaller size data. Below is the code snippet. The error was caught at catch(...).
//initialize m_dwSizeDescr
m_dwSizeDescr = 0;
es.pfnCallback = StreamInCallbackDescr;
try
{
m_ctrlDescription.StreamIn(SF_RTF, es);
}
catch (CDBException* e)
{
AfxMessageBox("Database problem " + e->m_strError);
}
catch (...)
{
AfxMessageBox("DoDataExchange StreamInCallbackDescr");
}
Eilzabeth
|
|
|
|
|
I have a dialog with some controls on it. I wish to make member variables for these controls. The problem is that in the ClassWizard, not all the IDC_* values show up, and some show up that aren't (but were) there.
In trying to fix this problem, I've re-numbered my resource.h file, and checked the .rc file - both are 'correct' - the .rc has all the proper IDC_* values, and no dupes exist in resource.h.
I've saved and reloaded, reverified everything. To this day ClassWizard instists that there is no IDC_WITH control but there is a IDC_LASTNAME control. (I had renamed IDC_LASTNAME to IDC_SO_LASTNAME, now BOTH show up, but only the IDC_SO_ one is in the .rc file.
Please help!
|
|
|
|
|
Recently I had a similar problem and workedaround it like follows:- Make a backup of your project just in case the thing fails.
- Copy your
.rc , resource.h and res directory to some new directory. Delete all these from your project.
- Open your project, then open the
.rc and drag and drop all resources to the project.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Nope.. still not working...
How do I delete the .rc from my project?
|
|
|
|
|
I've tried deleting the class wizard file (clw) and rebuilding. I can find the control and add a handler, andit adds it to the right class, but I can't add it as a member control.
|
|
|
|
|
What kind of control is it? If it's a radio button, then you'll only see the ID for the first one in the group (for obvious reasons).
Regards,
Alvaro
All you need in this life is ignorance and confidence, and then success is sure. -- Mark Twain
|
|
|
|
|
I am making an overloaded function.
one has parameters of myFunct(CString m_in, UINT nType)
second one has parameters of myFunctTwo(CString m_in, int i_in1)
If I trying passing UINT nType being MB_YESNO (which is 4 of course)
The UINT nType is being taken by myFunctTwo.
What logic/method should I use to get my function to work the way I wish.
Any help Thanks
Later, JoeSox www.joeswammi.com
Load my Sig here.....
|
|
|
|
|
(I guess both functions are named myFunct and you've changed the names in your post for explanatory purposes.)
The overload case you describe seems to be OK. Maybe if you post the code where you are invoking the function the problem will be easier to locate.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
void CPBox::PBox(CString str_in1, UINT nType)<br />
{<br />
AfxMessageBox(str_in1, nType);
}<br />
<br />
void CPBox::PBox(CString str_in1, int i_in1)
{<br />
CString temp, str_i_in1;<br />
str_i_in1.Format("%d", i_in1);
temp = str_in1;<br />
temp.Replace("%d", str_i_in1);<br />
<br />
AfxMessageBox(temp);<br />
}
tRYING to do:
pb.PBox("Simple Text in, with Message_Box Types(eg. MB_YESNO)", MB_YESNO);
Which will not display the Yes/No messagebox because it is being taken being the function that takes the int
Later, JoeSox www.joeswammi.com
Load my Sig here.....
|
|
|
|
|
OK. MB_YESNO is a macro with no type of its own: without further info, it'll be taken as an int , hence your problem. Explicitly cast the macro to an UINT :
pb.PBox("Simple Text in, with Message_Box Types(eg. MB_YESNO)", (UINT)MB_YESNO);
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|