|
|
Respected all
Regards
I have a problem in VC++.
" I have a Bitmap in the form of Electric Circuit and i did programming for it when current flowing through it it shows the calculated current from V=IR formula,in this i took the volatge as random value after one second change his value and with this all the current that flows throgh the circuit changed his value from the above formula.
But now i want that when current exceeds from some limited value the Resister coming in the remaining circuit change his color and again reset when current
kindly guide me.
Best wishes.
David
david
|
|
|
|
|
Hi all,
I have a third party dll.I only have the .dll file(no .h or .lib) file.I want to use the classes and the functions of that dll in a dialog based application in vc++.Please help me to solve my problem.
Thanks
Harsha
|
|
|
|
|
You will have to link to the lib in project-> properties in order to build it so that your client application can locate all the entry points to the DLL.
Can you get acess to the lib?
|
|
|
|
|
I've upgraded a series of Doc/View MFC VC++ 6 projects in a worspace to VC++ 7.1
The compile fine and start up fine showing the views etc, but when I try to bring up any dialogs including a standard MessageBox I get a crash in Debug build inside WinCore.cpp. The comments in code seems to suggesst that an ASSERT has happened while handling an ASSERT. Can't spot anything though in the call stack to suggest why it would happen.
Anyone seen anything like this on a project upgrade?
|
|
|
|
|
|
My application just hangs when run in Debug within Visual Studio 7.1.
I have tried to find the change that caused this problem but failed so far. I think I may have suffered a crash during an editing session - but not sure.
The Task Manager reports cpu ~ 99% for devenv.exe and when I End of Process I get the message:-
'The application failed to initialse properly ...'
Now the application seems to run OK when you double click the myProgram.exe icon.
But seem to have lost the ability to run and debug my program within the Visual Studio IDE.
Has anyone come across this problem before?
Other programs seem to be able to be run and debuged OK, its just this one. I have done a clean rebuilt - help.
|
|
|
|
|
|
I'm trying to gain access to a network disk using WNetConnectionDialog (first time that I've used it !) but cannot see how to retrieve the values selected by the user. Any help appreciated !
Doug
|
|
|
|
|
DougButtimer wrote:
...but cannot see how to retrieve the values selected by the user.
There won't be any. From MSDN:
If the user clicks OK in the dialog box, the requested network connection will have been made when the WNetConnectionDialog() function returns.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Is there some way to retrieve this info from the system itself then ?
Doug
|
|
|
|
|
What information are you wanting to retrieve?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
The path to the remote disk drive selected by the user. How can I do this ?
Doug
|
|
|
|
|
Try:
CONNECTDLGSTRUCT cds = {0};
NETRESOURCE nr = {0};
nr.dwType = RESOURCETYPE_DISK;
cds.cbStructure = sizeof(cds);
cds.hwndOwner = GetSafeHwnd();
cds.lpConnRes = &nr;
WNetConnectionDialog1(&cds);
TRACE(_T("dwDevNum = %lu\n"), cds.dwDevNum);
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
I want to show CToolTipCtrl object when user enters invalid character. Actually i want to use that class when i want. But i cant find a solution. Is there anyway to override that functionality.
I use several methods, but cant do what i want.
I use ShowWindow like funtctions, but they just show and disappear. They dont even there for a few miliseconds
Being mortal is what makes impossible possible.
|
|
|
|
|
i)declare CToolTipCtrl in ur class
like CToolTipCtrl m_ToolTipCtrl ;
ii) add the following code in constructor
TOOLINFO ti;
DWORD dwStyle = TTS_BALLOON;
m_ToolTipCtrl .Create(this, dwStyle);
m_ToolTipCtrl .FillInToolInfo(ti, this, 0);
ti.uFlags |= (TTF_TRACK |TTF_ABSOLUTE );
ti.lpszText = (LPTSTR)_T("Enter Valid Phone number");
m_ToolTipCtrl .SendMessage (TTM_ADDTOOL, 0,reinterpret_cast<lparam> (&ti));
iii) add the following code, where u want to show the tooltip
LPTSTR lpszMessage = _T("Enter Tooltip text here");
m_ToolTipCtrl.Activate(TRUE) ;
CToolInfo ti;
m_ToolTipCtrl.GetToolInfo(ti, this, 0);
ti.lpszText = lpszMessage;
m_ToolTipCtrl .SetToolInfo(&ti);
m_ToolTipCtrl .SendMessage (TTM_TRACKPOSITION, 0, MAKELPARAM(rect.right - 20, rect.CenterPoint().y));
m_ToolTipCtrl .SendMessage (TTM_TRACKACTIVATE, TRUE,reinterpret_cast<lparam>(&ti));
this code i got from some post
for more info follow this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/tooltip/usingtooltips.asp
naren
VC++ programmer
|
|
|
|
|
narendra_ b; thank you very much for your help. I've been working on it for hours but couldn't find the solution.
Your code works very good.
|
|
|
|
|
hi
Suppose I want an application which takes a source file and outputs its data members and functions.
Supposed to develop into a kind of class view explorer.
Regarding parsing the source file ....
should i go for using regular expressions rules for this parsing or
should i go for a language representation in context free grammer[CFG] and use the CFG rules for parsing
or is there any other possible ideas for source file parsing
awaiting advice
fordge
|
|
|
|
|
For something with fixed syntax rules such as a programming language, I would go for a CFG, since parsing it with pure regex can be relatively complicated.
Search Code Project for context free grammar to get more information.
Hope this helps.
~RaGE();
|
|
|
|
|
I think that you should use a CF Grammer for parsing the file. The advantage of the CFG is, that when you have your grammer and rules, you can easely deduce code from it by yourself or a tool.
An other advantage of a CFG over RegEx is that with a CFG, you almost always have a good overview of what you are doing and where you are doing it, RegEx tend to get complicated really fast.
A recursive parser (from a CFG) is also easier to debug, than a state based RegEx parser, since you always have stack traces and you exacty know where you are and how you came there.
IMHO I think that regular expressions are great for validating strings (like postal codes, phone numbers, etc..), but for the real parsing you shouls stick with grammers and parsers.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Probably CFG.
If you want to try regular expressions, then go download and install Regex++. It has some example programs like taking C++ file and (thru callbacks) outputs an html file.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Hey Guys,
My name is Danny Nowlan and I'm currently working on an app using Visual C++ 6, that loads an SDI application using a DLL.
I'm having an intermittant problem in release mode with some WinXP machines where the DLL won't load at all in release mode. It doesn't even get to InitInstance() In the dll. In debug mode it is perfect. The bugger is it only happens on a handful of WinXP machines
Is there a way of looking at the source code that loads the dll into my application. That way I can put in some statements etc so when I compile in release I can see what is going on.
Thanks guys
Danny
|
|
|
|
|
|
~RaGE();,
The first article really helped. It discussed compiler optimisations, and the moment I turned it off it worked like a charm.
Thank you so much.
Danny
|
|
|
|