|
|
Hi all,
Does ATLASSERT run during release mode? should I enclose it with ifdef debug? Or it doesnt do anything on release mode?
Thanks,
Jayjay
|
|
|
|
|
What about reading documentation [^], [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
The regular answer would be "RTFM".
Greetings from Germany
|
|
|
|
|
Hi programmers!
I have a question on how to attach another window. Here is a little explanation.
I created a Frame in wxWidgets and made it transparent. Now i want to attach it to another window or even better over another Window (WinAPI). I tried SetParent(child,parent) and set my window as a child window of the parent. The problem is that if the parent window updates the view, my window is in a new order and antoher window is over it and mine disappears. Is it possible to set my window over the other window without using SetParent() but my window should appear if the other window appears and disappear if the other window disappears. is it possible?
Thank you very much ans please excuse my bad english
|
|
|
|
|
Dear all,
I have created an application where i want to open two dialog box, against clicking two toolbar Button. I have created object of that two dialog class and used DoModal(). Have there any option except DoModal() to open Two Dialog at same time?
Regards
Munna
Indian Statistical Institute(ISI)
|
|
|
|
|
Depends of what you want to do exactly: if you still want to let the user interact with the main user interface, then you have to use two modeless dialogs.
If you want the user only to interact with the dialogs, then you have to create a modal dialog (like you are doing now) and from this one create a modeless dialog.
Anyway, the solution is to use modeless dialogs . Search for that on codeproject or google and you'll find a lot of examples.
|
|
|
|
|
Thanks for that.
Can u told me What command will i use for mode less dialog to show. I want to give permission user to interact with the main user Interface.
|
|
|
|
|
|
Shaheen.India wrote: Have there any option except DoModal() to open Two Dialog at same time?
Yes, see for instance [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
Im having the ex.txt file in one variable.I need to save this file into some other location using file browser(browse button).
code is:
CFile f;
char strFilter[] = { "BCR Files (*.bcr)|*.bcr|All Files (*.*)|*.*||" };
CFileDialog FileDlg(FALSE, ".bcr", NULL, 0, strFilter);
if( FileDlg.DoModal() == IDOK )
{
f.Open(FileDlg.GetFileName(), CFile::modeCreate | CFile::modeWrite);
CArchive ar(&f, CArchive::store);
ar.Close();
}
else
return;
f.Close();
How to automatically give this ex.txt in File name.
Pls help me....
Thanks & Regards
Anitha
|
|
|
|
|
AnithaSubramani wrote: How to automatically give this ex.txt in File name.
Like this?
CFileDialog FileDlg(FALSE, ".bcr", _T("ex.txt"), 0, strFilter);
|
|
|
|
|
I got the result.
Thanks a lot.............
|
|
|
|
|
while compiling any prgramin vc++ i am getting the same error pls tell me why it is so like this...
MSVCRTD.lib(crtexew.obj) : error LNK2001: unresolved external symbol _WinMain@16
1 unresolved externals]]
Fatal error!!
these r the errors i am always gettings..
|
|
|
|
|
Try New Project > Win32 Console Application.
|
|
|
|
|
Have you changed the project settings to use UNICODE characters ? The linker is looking for a console application, but the project is being compiled as windows application.
- Malli...!
|
|
|
|
|
Please check this[^] and this[^]. Similar threads which contain solution for your problem.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
May be you defined UNICODE in project settings and doesn't defined the entry point
If so set Project Settings -> Link -> Output -> Entry-point = wWinMainCRTStartup
aks
|
|
|
|
|
I currently done with my programming for the CSP. The problem that I’m having is, I have the different result whenever I run the CSP program. FYI, currently I have 2 type of CSP dll, a.dll already been signed by Microsoft where b.dll is the one that I develop(still in the development stage).
Run in Vista Ultimate/Win XP SP3.
Replace the latest advapi32.dll(from one of the sources from Internet)
1. Place the a.dll and testcsp.exe to c:\windows\system32
2. Run command : regsvr32 a.dll result FAIL
3. Run command : cspSign c a.dll result PASS
4. Run command : regsvr32 a.dll result FAIL
5. Run testcsp.exe result PASS
Question : Is the result PASS because the a.dll already been sent to Microsoft for signing?
Replace the latest advapi32.dll(from one of the sources from Internet)
1. Place the b.dll and testcsp.exe to c:\windows\system32
2. Run command : regsvr32 b.dll result FAIL
3. Run command : cspSign c b.dll result PASS
4. Run command : regsvr32 b.dll result FAIL
5. Run testcsp.exe result FAIL
Question : Is the result FAIL because the b.dll is not been signing?
Use the original advapi32.dll
1. Place the b.dll and testcsp.exe to c:\windows\system32
2. Run command : regsvr32 b.dll result FAIL
3. Run command : cspSign c b.dll result PASS
4. Run command : regsvr32 b.dll result FAIL
5. Run testcsp.exe result FAIL
Question : Is the result FAIL because I didn’t replace the advapi32.dll?
Run XP (the same environment during the development of a.dll)
1. Place the b.dll and testcsp.exe to c:\windows\system32
2. Run command : regsvr32 b.dll result FAIL
3. Run command : cspSign c b.dll result PASS
4. Run command : regsvr32 b.dll result FAIL
5. Run testcsp.exe result PASS
Question : Why both of the b.dll is PASS?
FYI, a.dll was compiled using Visual 6.0 and b.dll was compiled using Visual Studio 2005. Is the compiler cause the different result of during the testing?
Thank You.
|
|
|
|
|
Hi All,
I am using msdev.exe to build my project in VC++ 6.0. VS2008 Professional dosend have msdev.
this is how i am using in 6.0
msdev PACERField.dsw /make "0BuildAll - Release" %1
What should i use in VS2008 to build my project in similar fashion.
Thanks
|
|
|
|
|
pratap1980 wrote: What should i use in VS2008 to build my project in similar fashion.
I suggest using the documentation[^]
led mike
|
|
|
|
|
msdev.exe - executable is the IDE of Visual Studio 6.0, which supports command line options to build project, as well. From Visual Studio 2003 onwards, the IDE executable changed its name to devenv.exe . That's why you are not able to evoke msdev by installing Visual Studio 2008. Well, check this article[^] about how to build project via command line by using devenv.exe .
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
Hi,
I'm fairly new to database programming, but I have been using MFC and C++ for a while. So, here is the problem I'm having.
Here is a basic description of the two tables I'm using.
PersonTable
PersonId, INT, AUTO_INCREMENT (Primary Key)
Name, VARCHAR(32)
ImageTable
ImageId, INT, AUTO_INCREMENT (Primary Key)
ImageBlob, LARGE_BLOB
PersonId, INT (Foreign Key)
Basically, I want to insert the person record into the person table, next insert the image for that person into the image table, and finally link the ImageTable.PersonId to the PersonTable.PersonId.
So, here is the code I'm currently using
<br />
personTable.AddNew();<br />
personTable.m_Name = "Joe";<br />
personTable.Update();<br />
<br />
personTable.Requery();<br />
personTable.MoveLast();<br />
<br />
long personId_ForeignKey = personTable.m_PersonId;<br />
<br />
imageTable.AddNew();<br />
imageTable.m_PersonId = personId_ForeignKey;<br />
imageTable.Update();
This works, but what concerns me is that this isn't safe for concurrent inserts. If multiple clients are inserting into the database, then I could get the wrong foreign key when I call "personTable.MoveLast()." Is there a better way to do this? Thanks!
-Will
|
|
|
|
|
mevatron1 wrote: Is there a better way to do this?
Yes, several, for example Stored Procedures[^]
led mike
|
|
|
|
|
Do you have an example of a stored procedure to do that for my simple tables? Will the imageBlob be a problem for the stored procedure?
-Will
|
|
|
|