|
Anyone have a CStatic control that has scrollbars? I could use CEdit with read-only, but it does not look very good on PocketPC.
|
|
|
|
|
I wanted to monitor the number of upload and download bits, in realtime, under Windows 98 and 2000. Does anyone have any idea of doing it? I would be doing it under VC++.
Many ThanXs...
|
|
|
|
|
Can anyone roughly tell me how i can send AT commands through a palm with CodeWarrior program.I have succesfully open the serial port for transmitting data but there's error when sending out AT commands.I use the hyper terminal to check my output data but it does not coincide with the input data.
|
|
|
|
|
Hello,
in my MFC app I'm using a modeless child dialog to display some extra information. When the input focus is on the modeless dlg, the accelerators of the main app are not working.
What to I do to make things better?
Thomas
|
|
|
|
|
I'm looking for a easy way to skin an MFC app(captions, buttons, progress bars, windows and dialogs borders, etc), does anybody know where can i get an example of this, or if you're gonna put an article about this?
|
|
|
|
|
Anyone seen some code that does VC.NET auto hide windows in MFC (I found one in WTL (http://home.worldonline.dk/~viksoe/autohide.htm) but that doesn't fit my current project))
Thanks
|
|
|
|
|
Wait for BCG pro
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
one year of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru and Crystal Ace.
|
|
|
|
|
I think you're missing the point. The whole point of this site is to share source code with each other. Recommending a commercial library doesn't answer the original poster's question. Get a clue Troll.
--
Paul
"I drank... WHAT?"
|
|
|
|
|
I looking for a sample source code for simple transmit/recieve audio/video in c++.
I currently using the JMF but i want to have "Control".
Does somehting like this exist?Where can i find Source and documantion and samples.
Hope to have an answer.
Yoav:
yoav adler
|
|
|
|
|
Try
http://www.banasoft.com/AVPhone.htm
|
|
|
|
|
I looking for a sample source code for simple transmit/recieve audio/video in c++.
I currently using the JMF but i want to have "Control".
Does somehting like this exist?Where can i find Source and documantion and samples.
Hope to have an answer.
Yoav
|
|
|
|
|
Hi, all!
Does anyone of you know how to apply C++ to program an algorithm named "Subspace iteration", which is mainly for the calculation of eigenvalues and eigenvectors.
Thank you very much for your guidance!
Jeffrey
|
|
|
|
|
How can I find out what OS my program is running under. I need to be able to distinguish between NT 4.0 and Win 2K.
Regards,
SAK
|
|
|
|
|
you can use GetVersionEx
OSVERSIONINFO.dwMajorVersion will be 4 for NT 4.0 and 5 for Win 2K
Nish
|
|
|
|
|
Try this link.
Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
|
|
|
|
|
enum OS_TYPE{
OS_WIN_32s,
OS_WIN_NT3,
OS_WIN_95,
OS_WIN_98,
OS_WIN_ME,
OS_WIN_NT4,
OS_WIN_2000,
OS_WIN_XP
};
unsigned int GetOSType()
{
OS_TYPE ShellType;
DWORD winVer;
OSVERSIONINFO *osvi;
winVer=GetVersion();
if(winVer<0x80000000){/*NT */
ShellType=OS_WIN_NT3;
osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO));
if (osvi!=NULL){
memset(osvi,0,sizeof(OSVERSIONINFO));
osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO);
GetVersionEx(osvi);
if(osvi->dwMajorVersion==4L)ShellType=OS_WIN_NT4;
else if(osvi->dwMajorVersion==5L&&osvi->dwMinorVersion==0L)ShellType=OS_WIN_2000;
else if(osvi->dwMajorVersion==5L&&osvi->dwMinorVersion==1L)ShellType=OS_WIN_XP;
free(osvi);
}
}
else if (LOBYTE(LOWORD(winVer))<4)
ShellType=OS_WIN_32s;
else{
ShellType=OS_WIN_95;
osvi= (OSVERSIONINFO *)malloc(sizeof(OSVERSIONINFO));
if (osvi!=NULL){
memset(osvi,0,sizeof(OSVERSIONINFO));
osvi->dwOSVersionInfoSize=sizeof(OSVERSIONINFO);
GetVersionEx(osvi);
if(osvi->dwMajorVersion==4L&&osvi->dwMinorVersion==10L)ShellType=OS_WIN_98;
else if(osvi->dwMajorVersion==4L&&osvi->dwMinorVersion==90L)ShellType=OS_WIN_ME;
free(osvi);
}
}
return ShellType;
}
//rate me or hate me
I am the mighty keeper of the book on knowledge . Contact me to get your copy .
|
|
|
|
|
Hi there
I am learning Visual C++ and tring to build some kind of Visual CAD Builder
on MFC{ like Visio}
But of course I experience lack of knowledge
So, can anybody help me with that and send me link or some project where I can learn how to do that.
Thank you
Al
|
|
|
|
|
You'll have to be more specific about the areas you are struggling with. I suggest reading up on GDI and GDI plus. Also the Scribble tutorial that comes with Visual C++ will help you build the basic framework.
Michael
|
|
|
|
|
Do you know any good reading on GDI
GDI plus.... I have never heard about that
Al
|
|
|
|
|
|
Clim, I think your trying to jump too far ahead if you haven't yet heard of GDI (CDC). Doing so will be damaging for you for two reasons, you'll miss the basics of graphics work and risk being disillusioned with your programming experience if you fail on your early projects.
As suggested, the scribble sample program is a good place to start, because it teaches the 'object' method of drawing.
After going through the scribble tutorial to get the basics, I would suggest setting up an almost bare-bones project with just a standard View. Then work through the GDI functions, to see what they do and how there work. Then try some drawing objects of your own.
For example you might have a box class
class CBox : public CObject
{//data only class
CRect m_Box;
CPoint m_Possition;
COLORREF m_BorderColor;
COLORREF m_FillColor;
};
You might decide then to add intelligent shapes,
class CCircle : public CObject
{//Intelligent class
CRect m_BoundingRect;
double GetRadius();
double GetCircumference();
};
You could even, once you have done the ground work, create a CDC class of yuor own that understands your own objects.
But first you need to study CDC. Your C++ has already got a wealth of information of how to get started, don't waste your money on a £50 book until you have fully explored what you have and then know exactly which area of graphics you need help with, if any.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
Sorry, I meant to also say that text is an important area of graphics, thats still a CDC thing, and a plain View is the best place to work with that too.
You will need to understand the CFont/LOGFONT and how to calculate the dimensions etc.
You have a lot of work to do, but its best to just nuckle down and get on with it, you'll need to write interfaces in a your programming so the sooner you get these lessons out of the way the better.
We do it for the joy of seeing the users struggle.
|
|
|
|
|
Hello, I need a program, which decode header file and extract name of the function. Please can you help me? Where i can find describtion of header file?
Thank
|
|
|
|
|
Are you talking about a C/C++ .h file. These are text files. You could load the .h file into a string and parse the string looking for the function type (void,int, etc) From there if you find the first ( the text inbetween the two postions will be your function name.
Michael
|
|
|
|
|
I've been using C# for about a year now and I'm enjoying it. (first lang. I've enjoyed).
I do have some definite problems with it though:
1. If it's compiling to the same MSIL as VB.NET and VB.NET has untold hacks to get it to the place that it is now (like adding OO to it), then how on earth can the C# only compile to the same thing. This is a brand new language - barring the fact that Anders Hejlsberg also worked on VJ++.
2. The fact that C#'s main competitor is ... VB.NET. If there was no VB.NET then the current VB "programmers" would be forced to move into the world of Java/C#/Delphi.
3. The MS coders used MS Frontpage to write the .NET splash -- take a lot, I kid you not.
Simon
President of the Group for the Abolishment of Visual Basic Programmers World-Wide.
|
|
|
|