|
nickalai17 wrote: I want a solution, if it possible in next 2 days.
are you asking us to do your homework ?
that's not gonna happen.
|
|
|
|
|
Your homework is due in 2 days ? Better get started, instead of trying to find someone to do it for you online. If you get stuck, you can ask us specific questions, of course.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How would you do this on paper?
1) Read the first byte, and store it in a variable.
2) Read next byte.
3) If it matches the first byte, increment counter. Go to 2.
4) If it doesn't match the first byte, stop.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm curious why
0 0 0 1 0
should return 4, but
0 0 0 0 0 0 1 1 1 1
should return 6...
Good luck with that
This episode brought to you by the number 5
|
|
|
|
|
How do I create a virtual serial port (e.g. COM9)?
Is building a kernel mode device driver the only way or can I create something in user mode that my applications can open and interact with as if it was a standard serial port?
Thanks
Alec
|
|
|
|
|
There are a lot of open source virtual serial port implementation, just do a google search.
|
|
|
|
|
|
I want to display a dialog in a MDI application whenever there are no more documents(or dialogs) open.
Is there a message that i can intercept when everything is closed?
|
|
|
|
|
You can enumerate the number of child frames open at any give time by using EnumChildWindows. In your particular case, you can check on close of child window (the message is WM_CLOSE) that how many windows are open. If they are 0, u can show the dialog.
"Some people believe football is a matter of life and death.
I'm very disappointed with that attitude.
I can assure you it is much, much more important than that. -- Bill Shankly"
|
|
|
|
|
|
Hi everyone,
I am using
AfxGetApp()->m_pDocManager->OnFileNew();
to generate a new file. I want to change the properties of activex control embedded in the window that i am creating, so in this case how do i get a pointer to the axtive control variable which i have defined in view class. Or can anyone suggest how to get a pointer to the window that i create through above function.
|
|
|
|
|
This[^] provided no help?
Mark
This episode brought to you by the number 5
|
|
|
|
|
Hi everyone,
I am working on an application and not getting a sfew things.
1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell.
2. How to get text from a dynamically created edit box.
i have used the Create() function for creating the listbox.
|
|
|
|
|
chaitannya_m wrote: 1. How to change the colour of an individual cell in CListctrl. I want to get a look n feel of the stock market ticker where the colour of the cell changes whenever there is a change in the value of the list box there is a change in the colour of that particular cell.
It's already been done here[^]
chaitannya_m wrote:
2. How to get text from a dynamically created edit box.
You would be having the id of the control when creating it. Use GetDlgItemText.
virtual BOOL Create(
DWORD dwStyle,
const RECT& rect,
CWnd* pParentWnd,
UINT nID
);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
Do you want to get text of listctrl or editbox?
|
|
|
|
|
Do you want to get text of listctrl or editbox?
-> Actually the edit box is in the list control.. so i guess i should have mentioned that earlier.
Also i have tried XlistCtrl , it too complicated. Anyone can help me out there
|
|
|
|
|
hey Frnds...
plz tell me abt InvalidateRect.
My Problem is....
I have Object say CMultiBarGraph whose area is CRECT(X1 ,Y1,X2,Y2)
in that region suppose CREct(x1,y1,x2,y2) is frequently change...
I want to draw only CRect(x1,y1,x2,y2), not Whole(X1 ,Y1,X2,Y2).
how it is achieved????????
in my CMultiBarGraph's Draw(CDC*) there are so many different routiines including CRect(x1,y1,x2,y2)..i want only this is drawn///
how performance/speeed, memory is achived...
|
|
|
|
|
what is the problem you are facing. InvalidateRect adds a rectangle to the specified window's update region. The update region represents the portion of the window's client area that must be redrawn. And it gets redrawn whenever the next WM_PAINT message is received by the window. See the documentation of InvalidateRect in MSDN, that is self-explanatory.
"Some people believe football is a matter of life and death.
I'm very disappointed with that attitude.
I can assure you it is much, much more important than that. -- Bill Shankly"
|
|
|
|
|
whether only that Invalidated rect drawn or whole Draw methode is redrawn
|
|
|
|
|
You have been here long enough to have read the forum guidelines. Some highlights:
1. Do not use words like 'urgent' or 'help' in your message title. Everyone needs help.
2. Do not use text speak. Please use plain English.
______________________
stuff + cats = awesome
|
|
|
|
|
I just ported one my VS 6.0 MFC Apps to VS 2005. After solving several compile errors I finally got to this error:
Error 1 fatal error C1189: #error :
Please use the /MD switch for _AFXDLL builds
c:\program files\microsoft visual studio 8\vc\atlmfc\include\afxver_.h 77
I was wondering why VS decided this is a dll! I checked settings and changed:
Code generation-> /MDd to / MTd
Nothing solved. Then I tried to manually remove that definition in stdafx.h:
#ifdef _AFXDLL
#undef _AFXDLL
#endif
It's ok now. It compiled just fine, but when I want to debug, it is asking me to define an executable path! Just like when I mistakenly press debug(F5) on a dll or activex project in VS 6.0.
Can anyone help me please, how to debug an old mfc app in vs 2005?
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Hi,
I am new to Visual c++ and cannot resolve follwoing problem. I have a header file (NuRe.h) that contains declaration of my main class including its functions in NuRe.cpp. I would like to use a function from a lib file in this class. Therefore I have included a lib and its header file (lm.h) in the project. would like to include following function in the class but no idea how to do that as I always get error messages.
extern int dlevmar_der(
void (*func)(double *p, double *hx, int m, int n, void *adata),
void (*jacf)(double *p, double *j, int m, int n, void *adata),
double *p, double *x, int m, int n, int itmax, double *opts,
double *info, double *work, double *covar, void *adata);
Thanks
|
|
|
|
|
djdjoko wrote: included a lib
How did you do that?
Lib files should be added to linker input list.
Are you using MS IDE? VS 6.0 or 2003 or 2005? If so, try to find: Project Properties(Settings/Options) and in 'linker' options find 'Input' and add your lib path there. Library names will be separated by a blank space. (e.g:I'm adding 2 liberariesZipArchive and HButton: .\Zip\Debug\ZipArchive.lib .\HButton\HButton.lib )
Then 'Add existing item' to your project either from right clicking in Solution explorer or project menu and select appropriate header files.
Now it's ok to include the header and use functions, however the dll must be ready when using the executable file.
I hope this will help.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Hi everybody,
i installed Visual Studio 2005, before i worked with "2003".
The project is successfully build, but at the start a get an error message :
R6034
This is an unsupported way to load Visual C++ DLLs
You need to modify your application to build with a manifest
What does it mean?
I deactivated already the generation of a manifest via the project properties/linker/manifest
But it doesn't resolve the problem
Many thanks in advance
-- modified at 5:15 Friday 6th July, 2007
I deleted the Debug-Directory and rebuild the whole project, then it works
|
|
|
|