|
Hey.
I read Ramon de Klein's description of Serial library for C++. It sounds good.
PJ Naughter's class is a for MFC.
What is the difference between, say, Klein's class and Naughter's class?
What is the advantage of using MFC and not non-MFC?
Kuphryn
|
|
|
|
|
Okay. I appreciate it. Thanks everyone.
Kuphryn
|
|
|
|
|
C++ Style:
ifstream readCOM;
readCOM.open(com1, ios::in | ios::binary)
char *ptrStore;
try
{
ptrStore = new char[SIZE];
}
catch (bad_alloc error)
{
cerr << error.what();
exit(1);
}
readCOM.read(reinterpret_cast<char *=""> (ptrStore), SIZE);
How do you get the exact size of whatever you're reading from the COM port? It is not a measurable storage container.
Do I have to use an MFC class? What is the major difference if I were to use the ifstream and ofstream instead of an MFC class? I have no experience with MFC or windows programming.
Kuphryn
|
|
|
|
|
How can I use the "CInternetFile::Read()" or "CInternetFile::Write()" to copy a file from a FTP server to a local machine ?
Could anybody gives me some code sample ?
|
|
|
|
|
CInternetFile* pIntFile;
pIntFile
= ftpConn.OpenFile("MyFile.txt", GENERIC_WRITE, FTP_TRANSFER_TYPE_ASCII);
pIntFille->WriteString("My Data");
pIntFille->Flush();
.
.
pIntFile->Close();
Best Regards...
Chau, and good luck
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
hello
i want some help...
i have developed an application & used file open dlg box to select a specific file can u please tell me how to get version of that specific file in form of string....
thanking u
chanda.com
|
|
|
|
|
Hello every body,
I implemented a dialog base application, but sometime(when my
application swap), my dialog box do not refreshed itself after another window slides
on it.
Is anybody know how can i correct this problem?
Thanks for help.
S.
|
|
|
|
|
I hope I understood your problem correctly.
If you are doing a lenghty process in your application, you can write & call the following function in between the lenghty process, so that the window getts refreshed.
void ProcessMessage()
{
MSG msg;
if(::PeekMessage( &msg, NULL, 0, 0, PM_REMOVE ))
{
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
}
However the best way to avoid these problems, I feel is by creating thread for the lenghty process.
Prashanth
|
|
|
|
|
please help how i prevent my vc++ appliaction to kill from taskmanager.if it not possible then i have senn application when i killed they again restart how.
Ibrar Ahmad
Softare Engr.
Comcept PVT LTD.
Islamabad
abrar_@yahoo.com
|
|
|
|
|
I had the same problem. For that I made a service, that test the applications that are running. If I detect that one application of my list is killed, I restart again, the application. didn't find another solution...
Best Regards...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
u can solve it by writing a service and when u r processs is killed by os just create another instance...i think there is some other ways to prevent ur program in the hand of os..
just tr the first one
best luck..
renjith
|
|
|
|
|
Righty I have the source code to a MFC IRC client using the Document architecture....Mainframe() crap etc. I want to do the same thing but have it on a dialog app cos I hate the windowed based programs...here is the link:
http://www.vchelp.net/source/irc_class.zip
if someone can make this into a dialog based app I would be most appreciative and ill give them hosting, email address @ settlers.net...anything (bar my girlfriend )
Thanks
Ashley 'Ashman' Rowe
www.settlers.net
And no i cannot do it myself as i am incompetant
thanks
|
|
|
|
|
Hi,
I´ve seen that some apps, like Babylon, can trap a key, or combination of events ( shift + right mouse), even if the application has not the focus.
How can be this thing done ?
Thanks, Bye !
Braulio
|
|
|
|
|
Dear Braulio,
did u get any thing regarding this issue
thanks in advance.
Suhail
|
|
|
|
|
See SetWindowsHookEx with parameters WH_KEYBOARD, WH_KEYBOARD_LL, WH_MOUSE, WH_MOUSE_LL.
|
|
|
|
|
Thanks !
I will try that, Bye !
Braulio
|
|
|
|
|
I want get the string when mouse move to the area.
How to do this ? Plz give me some hints.Thx.
|
|
|
|
|
Try SetWindowsHookEx()
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
in process A, got a HWND of dialog that in process B, and how get the string in this Dialog that in the process B?
|
|
|
|
|
Use EnumChildWindows to get all the child windows of that dialog.
Once you find your edit control use GetDlgItemText to get the text on it
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Try getwindowtext...
|
|
|
|
|
Hello,
I am new to .NET and have some questions.
1. What is the differenes between .NET Framework SDK and Visual Studio?
2. I am currently learning standard ansi c++, and I am wondering whether I should learn VC++ 6 or VC++ 7 next.
3. If I were to take the VC++ 6 Desktop Apps Certification exam would it be worth it or wait for Vc++ 7.
4. Is VC++ 7 compaitable with ANSI C++?
5. Who here actually likes Visual studio 7 or .NET ?
thanks,
vinuk
|
|
|
|
|
1. The framework SDK is a set of classes/functions to program for the .NET environment. Visual Studio is just an integrated development environment.
2. Sure. Go ahead.
3. Not sure about that.
4. Not fully
5. Most people including me.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Does .NET used of VM classes ? like Java programs ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Visual Studio is an Integrated Development Environment (editor, debugger, wizards, etc..) that also includes compilers for various languages.
.NET Framwork SDK is simply a software development kit. It doesn't include an IDE or any of that stuff.
VC7 is more standard compliant than VC6, but it's still not 100% and is missing a few key (but advanced) features.
Chances are, there won't be a VC7 certification for a while yet... so you might as well take the vc6 ones.
VC7 rocks.
--
Where are we going? And why am I in this handbasket?
|
|
|
|