|
fantasy1215 wrote: Default, when insert a item...
How are you doing this?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hai all,
could you please give me the code , how to scroll the flexgrid.
just consider , if the flexgrid having 20 rows. at present only 10 rows are visible due to small dimensional flexgrid.
if i want to highlight the 20th row , it is highlighting, but i can't able to see it.
because 20th row is in the invisible portion of the flexgrid.
so how to auto scroll the flexgrid to see the 20th (highlighted row)
thanks
panthal
|
|
|
|
|
|
Why the following code returns same value i.e.42 (0x2a) weather "Reg.exe" exist or not.
HINSTANCE result;
result = ShellExecute(NULL, _T("open"),_TEXT("Reg.exe"), NULL, NULL, SW_RESTORE);
if((int)result==ERROR_FILE_NOT_FOUND ||(int)result==ERROR_PATH_NOT_FOUND)
AfxMessageBox(_T("Not Found"));
if((int)result > 32)
{
//code
}
|
|
|
|
|
Its working are you sure you have this on your computer?
|
|
|
|
|
Its working for me also..
|
|
|
|
|
And maybe path is incorrect.
|
|
|
|
|
pther wrote: result = ShellExecute(NULL, _T("open"),_TEXT("Reg.exe"), NULL, NULL, SW_RESTORE);
Use an absolute path here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
Today when i was doing socket programming and come across Listen API. This Api has int backlog as second parameter, which is used to specify maximum number of client connections that can be accepted by server. So one query come to my mind that what should be the maximum value that can be specified for this parameter and how is it decided or does it have some predefined value.
I will be graceful to all for their kind cooperation.
Regards,
Vishwa
Dare to dream
|
|
|
|
|
Hi,
Does anybody know why edit control cant be created as popup?
Thank you.
- NS -
|
|
|
|
|
can you more explain about popup with editbox?
|
|
|
|
|
OK... I did more study on that and I could locate the problem.
The code was like this...
HWND hWndEdit = CreateWindow( _T( "EDIT" ), _T( "" ), WS_POPUP | WS_VISIBLE, 0, 0, 100, 50, hWnd, (HMENU)1001, hInstance, 0 );
And the problem was with control ID given. For top level window it should be null or a valid menu handle.
Let me say what I was trying for. I need to show an edit control inside a list control (similar to label edit), but its width can be more than list control's client area. So I tried to use a popup edit control.
Any idea to implement the same?
- NS -
|
|
|
|
|
Hai..
i am new to visual studio 2005. previously i worked in visual studio 6.0 .now the problem is how to get class wizard window in vs 2005. In vc++ 6.0 if we click ctrl+w it will open class wizard. like this in vs2005...?
any one knows reply me...
Born to win...!
|
|
|
|
|
on the main menu of View use of Class View.
|
|
|
|
|
There is no one single thing called class wizard anymore. To add event handlers to items in a resource, display the resource then left-click on the control then select "Add event handler" or "Add variable" or whatever you want to do. You can add overrides of messages by opening the .h file, clicking anywhere inside the class then looking in the Properties windows. There's a series of buttons across the top to add different things to the class.
Play around a little bit and don't forget your right-click.
Judy
|
|
|
|
|
I think he/she wants to see class window(when use of Add class) when he/she want to makes his/her classes.
|
|
|
|
|
Hi All,
I am working on win32 application in that solution I have included new project in which I have one header file and I want to include that header file in my win32 application's file(any .h or .cpp).
But when I do this I got the error like ......
cannot include file ,no such directory.
And also is other project setting which I have to do to include this new project's file into my other project.
If you have any suggetion??
Thanks.
Ashish Bhatt
|
|
|
|
|
Have you specified the relative path of the header file while including. You can also specify the addition include directoryies.
In VS2005 go to,
Project | Properties | Configuration Properties | C/C++ | General | Additional Include Directories.
Regards,
Paresh.
|
|
|
|
|
Ya I have tried as you told it gave me the same error.
I have include lilke below
./omnithread
into Additional Include Directories in my old project.
And also here omnithread is the new added project and it is of Static Library (.lib) type.
Is there any suggetion??
Ashish Bhatt
|
|
|
|
|
First, check the position of that header file, I suggest you use full path in your include sentence.
If it doesn't work. In Microsoft Visual Visual Stdio .Net, choose [TOOL]->[OPTION]->[PROJECT]->[VC++ DIRECTORY]->[INCLUDE FILE], select the header file you want to include, then rebuild your whole project. Sometimes, you have to close the VC, and then open it.
Tomorrow it another day.
|
|
|
|
|
Thanks for reply.
Now Let me explain more about my problem.
I have included the project omnithread in which i have one header file omnithread.h
(I hope you know about this file).Now I want to use this header file into my current project,so I included it into my file like #include "omnithread\omnithread.h".And If I compile then it gives me the error like...
fatal error C1189: #error : "No implementation header file"
Now in omnithread.h file I have code like this in the starting.......
#elif defined(__SINIX__)<br />
#include <omnithread/posix.h><br />
<br />
#elif defined(__osr5__)<br />
#include <omnithread/posix.h><br />
<br />
#elif defined(__irix__)<br />
#include <omnithread/posix.h><br />
<br />
#else<br />
#error "No implementation header file" // I hope error comes from here:((<br />
#endif
I hope you will understand the problem.
If you have idea then reply me.
Thanks.
Ashish Bhatt
|
|
|
|
|
As you have explained above, you mean you have included the head file "omnithread.h" correctly.
May be you haven't defined the preprocess macro such as "__SINIX__", "__osr5__", "__irix__", so error "No implementation header file" occurs.
Tommorrow is another day.
|
|
|
|
|
Thanks for reply.
As you told that preprocesser macro may not be defined i tried to see its defination but it shows it is not defined.But the same other project is running by doing the same thing and it doesn,t give error to it.But I am doing the same thing and it gives me the error.
The diff is only that I include header file like #include "omnithread\omnithread.h" and in other project it is like #include<omnithread.h>.
If any other suggetion then reply.I will appreciate your answer.
Thanks.
Ashish Bhatt
|
|
|
|
|
I want to do a program with 3 views, in 2 of them graphic (these views are derived from CVIEW) and on the other side I want to put a file explorer (similar to Windows Explorer). But not the kind that resulted in CTreeView or CTreeCtrl. Besides not initialize where the component and declare.
Thanks.
|
|
|
|
|
Do you want to make your tree control of course with graphics functions for files?
|
|
|
|