on the resource editor, there is a "decimal" property which make the editBox accept only the 10 decimal digits...
if you'd like to allow the . character, or a sign character like + or -, you'll have to overload the WM_CHAR event...
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
this code is located in the main class of the program so that it shows NO ERRORS ..and NO MENU ... i'm sorry for buggin' you but i need help thank you
hi, I am student and am actually doing a project on landscape generator... its quite tough.. my problem is that am nt being able to load a bitmap image from files to my picture box when the user click on a specific button.. plz help me...
In "File View" of my visual studio's work space when i "Right Click->Add Files to Folder" its giving me one error like "Microsoft Developer(R) Studio has encounted a problem and you need to close it..............." When i am closing it then its not even closing rather the hour glass comes and it's taking too much time. For your information i am working on a visual c++ project.I will appreciate if any one can tell what is the cause and how to fix it.
This seems to be a application bug. Try this: open the file in your Visual Studio and rightclick in the file window. There is also a menuitem 'Add to project' (or similar). If this doesn't work you have possible to reinstall your DevStudio.
I have an MFC application in which I take records from a table in one database (Let's say database A, table A), and insert them into a table in another database (Let's say database B, table B). This is a sort of "database conversion".
The thing is, that in database A the record numbers are not necessarily consecutive (for instance there could be records #1,2 and 4), But in database B the records are inserted to table B with an automatic record number.
Table A (Database A) Table B (Database B)
record #1 ------------> record #1
record #2 ------------> record #2
record #4 ------------> record #3
My problem is that I need to save the record numbers of the records in database/table A, in order to use them later (for database relationship purposes).
(For instance - i need to know that record #3 in database B was actually record #4 in database A).
I used a CArray object to keep the indexes of the records of database/table A, but after I do the "database conversion" I need to use the indexes (of database A) in another application. how can I do this?
By the way, I am using C++ (and MFC) in .Net 2003.