|
Blamor wrote: I have started looking around for how I can port my app and I figured maybe using something like wxWidgets would make sense for the GUI part of the app.
That makes sense. Once you've worked with MFC, it will be very easy to use wxWidget, their usage is quite similar.
Blamor wrote: Now, I don't know what I should use for the serial communications aspects of my app.
Well, what did you use in your VC6 application ? I don't remember that it exist MFC classes for serial communication. You could simply use the plain API functions (like CreateFile, ReadFile, ...). anyway, you can find a lot of existing classes for serial communication on codeproject.
Blamor wrote: For instance, I am using CMap to store data in memory. My understanding is that these functions are not availalble anymore in Visual Studio Express. What can I use to replace these functions? STL? Is there an open source version of it that would work with Visual Studio Express?
Well, first, these are not functions but classes. And yes, you can use the STL which is distribute with the express edition (wow, I cannot imagine that somebody can distribute a compiler without STL libraries, even for free )
There is also a map in the STL.
|
|
|
|
|
I want have make a window form aplecatie for my clan.
and i have made a button withe the name servers
and i want that as i click on the button servers that i
got all ther server ip's with the server statics.
in a new form or a pop up form
but i dont know how to do that.
i hope this is enough information.
|
|
|
|
|
I use "Visual C++ 2005 Express edition"
|
|
|
|
|
Hi all friends.
How is it possible to generate sound alarm via Sound Card without using any multi media file ?
similar to Beep(,) that we determine sound frequence .
thanks .
|
|
|
|
|
Why can't you use Beep()? It does precisely what you said you wanted.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Volume of sound that Beep generate it is very low . I need sound that it's volume was very high .
thanks .
|
|
|
|
|
Turn your speakers up, try a higher frequency, or play a wav file that has the volume turned up.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
No No . The sound that Beep generate it , transferred from system speaker , no sound card .
|
|
|
|
|
You're at the mercy of the hardware, and there is no solution if you don't have a sound card.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
how to learn basic concept of vc++
|
|
|
|
|
|
Buy a book. Google will give you plenty of hits, but a beginner book will give you a better grounding
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Christian Graus wrote: Google will give you plenty of hits, but a beginner book will give you a better grounding
Well said.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Sonipriya wrote: how to learn basic concept of vc++
VC++ is obsolete. Learn <big><big>C#</big></big> instead!
|
|
|
|
|
Wrong board! I'm marking this as ABUSE!
|
|
|
|
|
Search for "beginners guide to dialog based applications" on Code Project. Its an excellent starting point.
|
|
|
|
|
Yes an also you can see a good articles on the codeproject
|
|
|
|
|
Hello,
I am trying to change the icon in my main appln window from the default (MFC icon) to something else. Back in the days of the MSVC 6 version, there was an option to set the mainframe icon to 16x16 bits, which would do what I'm trying to accomplish. In v. 2005 there does not seem to be a way to change the icon from 32x32 to 16x16. Or is there? Can anyone help me w/ this? Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
Try doing it programaticaly using SetClassLong() and GCL_HICONSM
|
|
|
|
|
If your main frame's resources are loaded by LoadFrame(IDR_xxx) then create/edit an icon resource
with the id == IDR_xxx and it will do WalderMort's suggestion for you. If the icon only has
32x32 size then the system will resize it when necessary. You can always add/remove other sizes
to the icon resource.
Mark
|
|
|
|
|
It's well-hidden in VC8. Right-click in the icon editor->Current icon image types->select a size
|
|
|
|
|
Hi ,
I getting always hFile = 0xfffff and i dont know what i did wrong.
Please help me.
<br />
bool CSearchFile::SearchFileInPath(CString &sFileName, CString &sPath, std::vector<char*>&cResultBuffer)<br />
{<br />
HANDLE hFile;
WIN32_FIND_DATA FileInformation;
bool bRetVal = false;<br />
<br />
if(sPath.IsEmpty() || (sPath.CompareNoCase(_T("*.*")) == -1))<br />
sPath.Format(_T("C:\\"));<br />
<br />
if(cResultBuffer.size() > 1 )<br />
{<br />
cResultBuffer.clear();<br />
}<br />
<br />
sFileName += _T("\\*.*");<br />
<br />
hFile = ::FindFirstFile(sFileName, &FileInformation);<br />
<br />
if(hFile != INVALID_HANDLE_VALUE)<br />
{<br />
.<br />
.<br />
.<br />
.<br />
}<br />
<br />
::FindClose(hFile);<br />
<br />
return bRetVal;<br />
}<br />
|
|
|
|
|
What is in sFileName when you call FindFirstFile() ? The code you posted can end up putting two backslashes in a row, which isn't legal in a file path.
|
|
|
|
|
OK,
My program is simple MFC program that take path ( root path ) and file name and look the file in this path and directories.
The sFileName is the name of the file.
I call FindFirstFile method when user press on button "Search" in the dialog. In this case user can set Path to be *.* or empty Path - in both cases it will look the file in C:\ directorie.
I try to remove the "\\*.*" part but its still dont work and i dont know why.
|
|
|
|
|
I mean what specifically is in sFileName ? When FindFirstFile() fails, what is the value of GetLastError() ?
|
|
|
|