|
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
|
|
|
|
|
Can I examine it in the actual function something like
void CPBox::PBox(CString str_in1, int i_in1)
{<br />
CString temp, str_i_in1;<br />
if ((i_in1 != (UINT)MB_YESNO) || ...)<br />
{<br />
<br />
str_i_in1.Format("%d", i_in1);
temp = str_in1;<br />
temp.Replace("%d", str_i_in1);<br />
}<br />
else<br />
{<br />
AfxMessageBox(str_in1, (UINT)i_in1);<br />
}<br />
<br />
AfxMessageBox(temp);<br />
}
I want the parameter calls to the function as close as AfxMessageBox as possible.
Thanks for your help
Later, JoeSox www.joeswammi.com
Load my Sig here.....
|
|
|
|
|
One solution is static_cast. What data type is MB_YESNO? Is that a Windows enum or an abstract enum you implemented? In the latter case, using the enum data type inplace of UINT.
Kuphryn
|
|
|
|
|
Hi all
I am trying to make my app a little friendlier.
I a use a dialog to set a network computer as a source for a running object.
For now the user must type in the name of the network coputer manually, for example..... \\server1
I am trying to set up a GUI like the browse folder dialog common in windows. Except it will browse computers on the network. When the user selects the computer, it's name will appears in the dialog box in one of the fields.
I can't find any info on doing this but I have seen this done many times.
Any help appreciated
George W
Software Developer
www.zsystems.ca
|
|
|
|
|
If you are working on NT/Win2k/XP you can use the Net* functions to find computers and users on the network
Like NetServerEnum()
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
I have a app that is non MFC app and will use CString and CFileFind but if i #include "stdafx.h" i get a error message that say's
fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h> and if i remore al the #include <windows.h> files in the *.h file I still get Many errors what should I do??
\Larsson
|
|
|
|
|
As for CString , Joe O'Leary provides a clone for non-MFC apps in his article CString-clone Using Standard C++[^].
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
CString and CFileFind are MFC classes, so they can not be used in non MFC apps. You can use std::string or TCHAR* arrays for strings. Use the FindFirstFile[Ex]() and FindNextFile() API functions instead of CFileFind (CFileFind is just a wrapper for these functions).
HTH
CPUA 0x5041
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
There is not way for CFileFind to be used in API applications as far as I know (though it's very easy to be done using the API functions),
however if you are using VC++.Net you can use the CString class by inlcuding <atlstr.h<> and use it normally.
I think this might not work in VC++ 6.0
|
|
|
|
|
Just comment out that #error. Everyone does it
Don't forget that the MFC functions are just C++ wrappers for a C core. FindFirstFile, FindNextFile work the exact same way. And CString is just the stanard C functions wrapped, with a bit of magic glue.
|
|
|
|