|
can you read those files yourself ?
Yeh.. i can read that file coz i have created such a symols..its approximately 100 .dwg file. but is it to load and display lots of image ( appro 100 ) ??
|
|
|
|
|
Hi,
Im new to MFC.I want to display a tab control just above the status bar if visible else just above the window border in a SDI application when the application is maximised.
I tried GetClientRect of view on OnInitialUpdate n displaying the tab just above the client bottom.But it didnt worked out as the rectangle returned here is not same as the rectangle returned in case when the window is maximised.
How can i overcome this problem?
Thanks,
Asif
|
|
|
|
|
Hai,
I have coded programs in VC++ which use information stored in some form or the other. Most programs use .mdb . A few programs used info stored in .dat files.
Would .mdb and .dat be called as database used . I know for sure that MySql would be called database.
If I have to mention in my Resume, the database I have used in the programs that I have developed, will it be correct to put .mdb and .dat ?
Fortitudine Vincimus!
|
|
|
|
|
Tara14 wrote: If I have to mention in my Resume, the database I have used in the programs that I have developed, will it be correct to put .mdb and .dat ?
No. Mention that you've worked with databases. That would be appropriate.
Tara14 wrote: Would .mdb and .dat be called as database
.MDB is database, for sure.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
Tara14 wrote: Would .mdb and .dat be called as database used. I know for sure that MySql would be called database.
If I have to mention in my Resume, the database I have used in the programs that I have developed, will it be correct to put .mdb and .dat ?
If you have to question this, I would hesitate mentioning anything about database experience. Nothing's worse than having your bluff called (in an interview).
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi guys
how do i set cursor in mfc picture control?
thanks
|
|
|
|
|
Use CStatic::SetCursor .
Example is given in MSDN for same.
|
|
|
|
|
Can you be more specific but see SetCursor
|
|
|
|
|
Dear All,
I need to find out that my service program ("rr.exe" service exe) is running or not by coding ?. How ?.
I used shellExecute() fn to start my service. I dont know is that running.
I want to checkout by coding. How ?
Thanks.
|
|
|
|
|
|
EnumServiceStatus would be best thing.
you can also use CreateToolhelp32Snapshot as an alternative
|
|
|
|
|
Me or Sakthiu
|
|
|
|
|
Sakthiu wrote: I used shellExecute() fn to start my service.
You should be able to use the SERVICE_CONTROL_INTERROGATE control code.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have a problem when add a string into string table with ID bigger than 61446.
For example: in resource.h:
#define IDS_STRING_TEST 61446
When I build WIN32 Dynamic Link Library (VC++ 6.0), I get the following error:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE/afxres.rc (120): error RC2151 : cannot reuse string constants, 61446(0xF006) - "Test" already defined. Cannot add 61446(0xF006) - "an unnamed file".
But when I build a Dialog-Based Application, it's ok
Could any one tell me why?
Thank in advance.
Papais
|
|
|
|
|
dungpapai wrote: I have a problem when add a string into string table with ID bigger than 61446.
You would have a problem if you define it not bigger than 61446, but equal to 61146 or anything else that is already in use. Even 61147 or 61145 should work! So use the values that are not already being used.
61446 = 0xF006 and this is defined as AFX_IDS_UNNAMED_FILE with the description "an unnamed file" in the file AFXRES.RC
Reference: http://support.microsoft.com/kb/194299[^]
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
|
Hello All,
I am adding values 0,1,2 to a combo box in Initdialog
switch(Message)<br />
{<br />
case WM_INITDIALOG:<br />
{<br />
HWND hwndCombo = GetDlgItem(hwnd, IDC_CB);<br />
SendMessage(hwndCombo , CB_ADDSTRING,0, (LPARAM) "0");<br />
SendMessage(hwndCombo , CB_ADDSTRING,0, (LPARAM) "1");<br />
SendMessage(hwndCombo , CB_ADDSTRING,0, (LPARAM) "2");<br />
}
in other function I want to use the value of the combo box, (user selected item) for that I am using below code
int F;<br />
HWND HCBF = GetDlgItem(hwnd, IDC_CB);<br />
SendMessage(HCBF , CB_GETITEMDATA,(WPARAM)F, 0);
This code has no error but I am getting some junk value and i am not geting the values 0,1,2
Can u please tell me what is the error in the above code ???
Thanking you,
Suresh HC.
|
|
|
|
|
Suresh H wrote: int F;
HWND HCBF = GetDlgItem(hwnd, IDC_CB);
SendMessage(HCBF , CB_GETITEMDATA,(WPARAM)F, 0);
Here , you have not initialized F .
Passing junk values as index. Pass index you want there.
CB_GETITEMDATA is not right message to send in this case, too.
You need to use CB_GETLBTEXT .
|
|
|
|
|
Hi Prasad,
Thanks for the response.
Actually I want to extract the value of the Combo Box (user selected value)
In combo box we have values from 0,1,2,3 ---- so on when user selects some value fro list any number , I want to extract that number and I want to use that number in the program.
Can u please tell me what I have to do ??
|
|
|
|
|
You must use of CB_GETCURSEL for get index to currently selected item instead use of 0
|
|
|
|
|
This code should suffice,
int nIndx =::SendMessage(hCombo,CB_GETCURSEL,0,0);
TCHAR buff[100];
::SendMessage(h,CB_GETLBTEXT,(WPARAM)nIndx,(LPARAM)buff);
|
|
|
|
|
And he needs to a convert atoi
|
|
|
|
|
WhiteSky wrote: And he needs to a convert atoi
Why ?
|
|
|
|
|
If he wants to use of numeric values
|
|
|
|
|
Thanks WhiteSky for the Response, yr info is also very use full for me. I will keep a note of that.
|
|
|
|