|
Hai
I am basically a Microcontroller programmer and now just starting PC based programming to create front end applications to control my devices connected to the serial port.
Other experienced programmers are doing this thing using Visual C with MFC class. that much I now.
I must do this with Visual C because I want to study VC (Not VB).
I have started by reading books and doing some small lesson programmes from books.
But so far could not find any piece of example to configure serial port and send data through that by reading a file called HEX file in PC.
Any body please sugggest a starting point for this purpose.
I can manage C,but not an expert.I have been using C in microcntroller programming.
Please suggest
Picstudent
|
|
|
|
|
|
|
Start by learning the basics of User Interface design with MFC. SAMS Learning Visual C++ in 21 days or in 24 hours are good starting points. There is also a lot of information here in Code Project, but if you are a beginner, you'll need a step-by-step procedure that is more likely to find in a book.
After you've learned the basics and feel comfortable of creating at least dialog-based applications, you can start studying the serial port. I would recommend starting with Microsoft Communications Control, an ActiveX component that hides away the complications of configuring and using the serial port. With this combination (MFC - Microsoft Communications Control) you could have something running very quickly.
|
|
|
|
|
Hai
Thanks a lot. great site with lots of info.
I have already learned to make dialogue based applications from that sams 21 days book. but the problem happens that these classes, wrapper all are new concepts to me.But will manage with the info I found in this site.
Will get back with possible problems I may encounter.
Thanks a lot
picstudent
|
|
|
|
|
|
Hai
Thanks for the link.
I have the book ,but it deals with VB .He is a fan of Visual Basic.
I want to do this on Visual C.
Thanks a lot
is the visual C++ reference pages in microsoft help pages available as PDF or html help files? Also where can we find the completee list of windows API functions
picstudent
-- modified at 3:17 Thursday 13th April, 2006
|
|
|
|
|
|
Does anybody know where to download last Platform SDK working in VC 6.0 ??
I've found on MS site it is February 2003 edition, but there was only a note I can order a CD with this SDK. Is there some downloadable version ? I've failed to find it.
Thanks !
rrrado
|
|
|
|
|
|
Thank you but there is update date August 2004, maybe it is also too new,
but I'll give it a try.
rrrado
|
|
|
|
|
|
Thank you but there is also note:
This SDK does not support working with Microsoft Visual C/C++®, 6.0 as support for VC 6.0 has ended
rrrado
|
|
|
|
|
sorry last answer had to be for previous link.
This one seems to be working, thank you !
rrrado
|
|
|
|
|
Hi all,
i want to access remote folders in a network. I am using NetUseAdd(...) Api, i am able to establish a connection to the Remote Machine what shall i do to access the Remote Folders.
thanks,
uday.
uday kiran
uday kiran
|
|
|
|
|
Would be simpler to just open "\\MachineNameInYourNetwork\SharedFolder\"? Any problem with that? Good luck!
|
|
|
|
|
Once you have mapped a drive letter to the remote machine, accessing a folder on it is done exactly like you would for any other folder on your local machine.
However, you might be better served to use UNC instead of bothering with NetUseAdd() and drive letters.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
You can use normal SDK function FindFristFile/FindNextFile() with WIN32_FIND_DATA's cFilename as "\\<server>\<share folder="" which="" you="" want="" to="" access="">\" .Make sure to share the folder.
Best Regards,
Deepu
|
|
|
|
|
I'm not asking how to do this, but I am asking if there is an alternative to using Automation.
After running some tests I am not happy with the performance. 1000 rows of 20 columns being read in 30 seconds, obviously cpu speed changes this, and my machine is quite fast. This is pure read and does not accout for the time taken to create an Excel object.
So has anybody come across any alternatives or third party libraries? A raw read of the xls file would be great, and anything that doesn't require MS Excel to be installed would be a good compromise.
Most of what I can find are shareware/buyware often with limitations.
|
|
|
|
|
If you're just using it as a data source, rather then trying to use any of it's automation features, you can get the data via ODBC, which I've found to be a lot quicker then using it via automation.
- Dy
|
|
|
|
|
Thanks for the suggestion. Yes I'm using it as a datasource, basically get the data from a cell and append it to the exe's own file system. So I am only ever reading and never writing.
|
|
|
|
|
|
After doing some further reading about ODBC, I have discovered that it would still require an Excel driver to be installed on the machine, and that this driver is part of the MS Excel installation.
I have however found a few projects on sourceforge which read the xls file directly, however they are written in foreign to me programin languages namely C# and .NET. I have decided to add another project to my "things to do" list, and that is to create a BIFF reader in plain C.
|
|
|
|
|
hi all,
how to acess messages from MSMQ Events when message arrived from source to Destination in OnArrived() function.
thanks,
uday.
uday kiran
-- modified at 7:33 Wednesday 12th April, 2006
|
|
|
|
|
TMetafile *pMetafile = new TMetafile;<br />
TMetafileCanvas *pCanvas = new TMetafileCanvas(pMetafile, 0);<br />
pCanvas->Brush->Color = clRed;<br />
pCanvas->Ellipse(0,0,100,100);<br />
<br />
FILE *fpW;<br />
fpW=fopen("h","wb") ;<br />
fwrite(pMetafile,sizeof(*pMetafile),1,fpW);<br />
fclose(fpW);<br />
delete pCanvas;<br />
<big>delete pMetafile;
<br />
TMetafile *pMetafile1 = new TMetafile;<br />
fpW=fopen("h","rb");<br />
fread(pMetafile1,sizeof(*pMetafile1),1,fpW);<br />
fclose(fpW) ;<br />
Form1->Canvas->Draw(0,0,pMetafile1);
If the pMetafile is deleted after saving the data into file then the code will not draw Ellipse. Is it there any way to store and retrive the Metafile Info.
|
|
|
|