|
When I put microsoft software into the CD drive, the CD automatically starts spinning and something will pop up so I can begin installing the software.
When I put my software into a CD drive, nothing happens. How do I make the CD automatically execute the setup.exe?
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle (an overworked graduate student)
|
|
|
|
|
You need to make an autorun.ini. I don't remember the exact sytax of the file off the top of my head, but if you take one of those CD's that does it and look at the file, it's very obvious.
Are you sure you want it to run setup automatically? A lot of those CD's have an autorun.exe that is simply a menu that can execute the setup. That way it doesn't start to install every time you put the CD in.
Programming in binary is as easy as 01 10 11.
|
|
|
|
|
Greven wrote:
You need to make an autorun.ini
Actually it is autorun.inf
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
From the MSDN:
The minimalist AUTORUN.INF file only needs to contain three lines of text:
[autorun]
open=filename.exe
icon=filename.ico
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
|
I was wondering if anyone could point me in a direction to get information on how to design a program to download newsgroups. I am using MFC and would like to design an app that would allow the user to download selected news groups from Outlook Express to a PPC. If it is easier to write my own front end if you will for the desk top to obtain the News groups then transfer them to the ppc that way then that is also an option.
Any help is appreciated.
Thanks,
-Eric
|
|
|
|
|
Is there an easy way to get a subclass out of a class from within the class?
This would be easiest explained in code
class A;
class B: public A;
From within B, I need to get a temporary variable of the subclass A. The subclass is setup with void operator=(A& a); None of them are pointers, just ... can't remember the term right now... I access them with a . not a -> man my memory is going... Anyway, I've tried this:
A a;
a = (A)this;
and it of course doesn't work. How can I grab the data from the subclass?
What I'm doing is implementing a rotation function for the nice CPolygon class that Chris wrote (*very* nice class btw). And I want to make a temp copy of the CPolygon data so I don't loose the data as the poly rotates. (If you rotate a polygon to much it colapses in on itself due to inaccuracy) So I want to make a backup copy of the data, rotate that data and then use it. But I can't grab the data... What do I do?!? Argh!
Programming in binary is as easy as 01 10 11.
|
|
|
|
|
A is the parent class of B, not the subclass. A pointer to B can always be cast to a pointer to A, so just do:
void B::SomeFunc()
{
A& refa = *(A*) this;
}
--Mike--
My really out-of-date homepage
Buffy's on. Gotta go, bye!
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
Worked like a charm! Thanks a lot. Why does the syntax have to be so confusing sometimes
Programming in binary is as easy as 01 10 11.
|
|
|
|
|
this would have worked.
A a;
a = *this;
Todd Smith
|
|
|
|
|
Does anyone know of any resources other than SDK documentation for DirectPlay 8? Is there any interest level for tutorials on this subject otherwise?
----
xian
|
|
|
|
|
I'd love to see some info, if you're thinking about writing it.
Christian
I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOzI live in Bob's HungOut now
|
|
|
|
|
I will begin looking into it if people are interested.
Thanks.
----
xian
|
|
|
|
|
I will begin looking into it if people are interested.
What do you mean by "begin looking into it"...?
Don't you have any knowledge on DirectX 8 yet?
Enjoy your life...
|
|
|
|
|
I will begin looking into it if people are interested.
What do you mean by "begin looking into it"...?
Don't you have any knowledge on DirectX 8 yet?
"Needless redundancy is the hobgoblin of the software engineering." - Peter Darnell
|
|
|
|
|
I want to get all the files from a specific directory.
How do I do it? I have no problems manipulating a single file.. my problem is on how to loop through the directory to get all files in it...
|
|
|
|
|
Call ::FindFirstFile(...), and then call ::FindNextFile(...) recursively.
Jon Sagara
"There are lies, damned lies and statistics."
-- Mark Twain.
|
|
|
|
|
You can use _findfirst and _findnext
I vote pro drink
|
|
|
|
|
Hi All,
I'd appritiate is someone show me the way to display BSTR type variable. How can I convert it in to char*?
Thanks for taking time to write in.
-- Sumit
PS: Please CC it to sumit@elitecore.com
|
|
|
|
|
void Display(BSTR strText)
{
_bstr_t strConvText( strText, true );
printf("Text is:%s\n", (char*) strConvText);
}
- God bless the World
|
|
|
|
|
Sumit Pandya wrote:
I'd appritiate is someone show me the way to display BSTR type variable.
Display it where? In the Watch Window? In a dialog? To stdout? Many of the API and library functions have a "wide" version, which can handle BSTRs (which are basically wide-character strings).
Sumit Pandya wrote:
How can I convert it in to char*?
The "WideCharToMultiByte(...)" function may be what you are looking for. If you KNOW that the BSTR only contains printable ASCII characters, you can do a "quick-n-dirty" conversion by copying character by character into a "char" buffer, and just casting the wide character to a "char".
Peace!
-=- James.
|
|
|
|
|
Yep, all answers are right... but you can use the simpliest way Look here:
#include <atlconv.h>
...
BSTR bsWideCharString;
CString csResultString;
USES_CONVERSION;
csResultString = OLE2T(bsWideCharString);
Isn't easy?
Philip Patrick
"Two beer or not two beer?" <shakesbeer>
Web-site: www.saintopatrick.com
|
|
|
|
|
Even easier, this seems to work for me.
BSTR bstrOriginal;
char * pChars;
...
pChars = (char *) (_bstr_t) bstrOriginal;
This code casts the BSTR to a _bstr_t wrapper class. _bstr_t class has a (char *) conversion method. This returns a converted copy of the string. It is NOT a cast.
Thanks for the help,
Bill
|
|
|
|
|
Easy, yes. The conversion macros are usually faster than wasting a bstr_t object to do the conversion, too. (Although assigning it to the CString will likely waste the time you just saved! )
But you have to be careful with them! They can cause problems if used in a loop, an exception handler, or if you are dealing with a large amount of data.
Peace!
-=- James.
|
|
|
|
|
´ve a problem with crecordset::update()!
i´ve created a user-dsn(excel 2000 derivied) and with the class-wizard a crecordset derivied.
if i call edit(); i get an error message that the datagroups are readonly, but i've used dynaset!
i need a solution!!! please
thanx
i´m german, i know the quality of my english...:
confused:
|
|
|
|