|
Look at the bright side! At least it only took you 2.5 hours to figure it out.
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
Hi
I write a wave file and want to play it with sndPlaySound, but all I get is a a beep from the PC speaker. PlaySound has the same effect. Other applications play my wave file fine, and I can play other sound files with sndPlaySound function. What is wrong?
tx
|
|
|
|
|
Hello,
I want to put a string in a XML document, but
sometimes the string can have character(s) that
are not compliant with XML, for example
put this string "<test>" doen't work because it's a
tag for XML.
What is the best way to convert a string into an XML
compliant format ?
A VC ++ function ?
A MSXML function ?
Thanks for your answers !!!
|
|
|
|
|
if you're using CStrings, you can just use the Replace member function
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
|
If you use msxml, this will be automatically handled when you write the xml file somewhere (stream, memory, disk). (" are replaced with ", < are replaced with <, and & replaced with & ).
How low can you go ? (enculage MS)
|
|
|
|
|
Hi all,
I have several *.mak files that I have modified to fix various issues in my builds. I need to be able to import these makefile back into the projects from which they came from. I cannot find a way to do this. Is this possible? Or do I have to physically add in the changes to the project file piece by piece? I thought there would be a quick and dirty way to import the makefile back in Visual Studio. Any help is GREATLY appreciated.
Thanks!
Danielson
|
|
|
|
|
Hello,
I want to ask how to store a String in 2-D array foramt?
e.g.
abc[0][0]="A";
abc[0][1]="AA";
abc[0][2]="AAA";
......
....
..
abc[n][n]="AAAAAAAAAAAAAAA";
THX!!!
;)
|
|
|
|
|
MFC or no?
Nitron
_________________________________________--
message sent on 100% recycled electrons.
|
|
|
|
|
Consider a vector of string objects.
Kuphryn
|
|
|
|
|
. MFC MDI project. I have a splashscreen class which instantiates an object in the initInstance in the app class. When this function goes out of scope, the splash screen is supposed to vanish since it was a local object. Does so fine on Win2K. On win98 however, it stays there even after the UI has come up! How dO I get rid of it? Any ideas why this is happening?
Appreciate your help,
ns
|
|
|
|
|
Can't you just put a close member into your splash class, and call it manually, rather than just closing in the splash's destructor and hoping the object gets deleted? (Less neat, I know, but at least that way you know exactly what's going to happen)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Okay. This might sound dumb. I didnt write the class.It has two things in it: create and onPaint, plus the constructor and destructor. What would I put in my Close() function? I dont think we can call the destructor right? Again, sorry if its an obvious question.....
Appreciate your help,
ns
|
|
|
|
|
Ahh, so I guess you've currently got something like
MyClass::MyFunction()
{
CSplashScreen Splash;
..do your startup processing here..
}
The Splash object should automatically get deleted at the end of the function, when it goes out of scope, but for some reason it isn't.
Instead, try changing it to:
MyClass::MyFunction()
{
CSplashScreen* pSplash;
pSplash = new CSplashScreen;
..do your startup processing here..
delete pSplash;
}
(I.e. you now have full control over the creation and destruction of the splash screen object, which should force it to close when you want it to)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Most excellent! I truly thank you for the idea - I was getting bogged d own in what to write in a Close() function. I have to remember this idea for future use too....the power of new and delete
Appreciate your help,
ns
|
|
|
|
|
I havent yet ever called a C dll from within my MFC program. What is the procedure for this? Where can I find this information? The C dll might be MFC too, or maybe just plain C++.
Appreciate your help,
ns
|
|
|
|
|
The easier ones (and it's most of them) will come with a .H and a .LIB.
So, you just #include the proper .H and #pragma comment(lib, "blablabla.lib") the supplied .lib
Others don't and you'll have to resort to the LoadLibrary() API call.
Q261186 - Computer Randomly Plays Classical Music
|
|
|
|
|
Thanks > I'll check out the loadlibrary function...and make a little fake MFC dll app to see what files are generated - if I get the .lib and .h file...question is which .h are we talking about? There are so many... Anyways, perhaps I should try my test before any further questions about this.....
Appreciate your help,
ns
|
|
|
|
|
Usually the files will all be named the same, so if you've got SomeRandomLibrary.dll you should also get a SomeRandomLibrary.h and a SomeRandomLibrary.lib
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Ah! Thank you. So if you are given the .h and .lib for a dll, you just include those appropriately, but if its just the dll thats available, then you have to do loadLibrary.....
Appreciate your help,
ns
|
|
|
|
|
|
Danke.....Lots to read..
|
|
|
|
|
Hey, play with TakeStock when you have a minute. Would welcome all feedback! Mucho thanks,
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I'm totally illiterate about stock jargon, but I'll check it out on my home pc this weekend. I take it this wasnt part of the deal you're working on? How is that coming along? I got the help doc HTML book. At first glance Idont seee a chapter where they actually link up the help system to a real app. That makes me nervous, so I will be bugging you when I get to that part (it will be among the first things I try). My app gets reviewed again on Friday. My new 2.8 is on the way. My goofy 40Gig machine told me yesterday I had 10M of free space left so I am now burning zillions of CDs. The new one has a DVD burner.
I used a nifty sort list control I found on CP in my project. Day before I found a disastrous bug, but it turned out to be an indexing problem. I was so upset when I found it that I got paralysed literally. I had no clue where to look. Ugh! Thank goodness thats resolved. Just a matter of time til I stumble upon the next bug.... or shall I say
|
|
|
|
|
Anonymous wrote:
At first glance Idont seee a chapter where they actually link up the help system to a real app
It's in there.
Anonymous wrote:
this wasnt part of the deal you're working on?
No this is just part of my freeware library. On the "real" work front, I joined a startup and have postponed sleep for the next 2 years. I'll catch up later.
Anonymous wrote:
My new 2.8 is on the way.
Cool! I'm using a 2.8 Xeon @ work. It's plenty fast, but I should've got a 2.0 dual processor instead.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|