|
Hmmm. When I have odd behavior like this with the debugger, I usually try and do a 'rebuild all'. If the source code and the object code are out of sync, the line you think you've placed the breakpoint on in the source does not necessarily match the place in the object code where the breakpoint instruction is inserted. This can cause all sorts of unusual behavior.
Gary R. Wheeler
|
|
|
|
|
Sometimes even this doesn't work. I've just had a really bizarre one where stepping over 'xor ecx, ecx' in the disassembly of 'char u[10] = "1";' caused an access violation. Access Violation on a register????? Maybe I'm missing something but that's not supposed to happen as far as I know. I ended up having to re-create the .dsw from scratch. Dropping the same source in and setting the same proj options (as far as I know) made it work just fine.
Strange but true.
==========================
i1.2sqrt(u).bcos(ur)sec(c)
but
b4.isqrt(u).ru/16
Navier
==========================
|
|
|
|
|
Just found out what *my* problem was. I had a watch set on one of my vars: 'what.size()'. Removing this makes everything work just fine. Maybe a bug in the VC6 debugger(?) Something for you to try anyway....
==========================
i1.2sqrt(u).bcos(ur)sec(c)
but
b4.isqrt(u).ru/16
Navier
==========================
|
|
|
|
|
Well, since this is probably the simplest sort algorithm, you should be able to figure it out. Otherwise, look here[^]
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them.
Jack Handey, Deep Thoughts
|
|
|
|
|
There is a probelm regarding the compaction of database. I have a database in ms-access on which i have performed some operations programatically. But When i try to compact the database using the compact database utility It is giving me errors such as "Record(s) can't be read; no read permission on <name>" error 3112 . Can anyone suggest some solution for it. I will be grateful .
Samir Sood
|
|
|
|
|
Hi,
I would like to know what happens exactly when you post a form in internet explorer. I mean, i know that internet connects to a server to retrieve webpage data and to send other data but i'd like to know what it does when you post a form. Does it make another connection? How is the data of a form sent, is this a protocol? If anyone knows a place where i might learn this, please let me know.
(the purpose is so my application can send submit forms through a direct tcp connection instead of having to insert an IE active-x control or something)
Thanks
Kuniva
--------------------------------------------
|
|
|
|
|
You've got here the complete reference for the HTTP protocol, including the POST command.
In short, when you send form data, the body of your request contains pairs of value. Example, you have a login form with two edit boxes : login + password.
When the user clicks submit, IE sends something like this :
POST http:
Connection: Keep-alive<eol>
Size: 30<eol>
<eol>
login=maunder&password=grumplf<eol>
And I swallow a small raisin.
|
|
|
|
|
How am I suppose to declare CArray in my CDoc header file?
I've try doing like this
CArray < CPoint, CPoint > m_ptArray;
but it didn't work. The example in MSDN (COLLECT) also declare it like this. Anyone knows what 's happening?. Thanks
Newbies
|
|
|
|
|
Saying it didn't work it not enough when you request technical help. Did compiler complain? Did program crash? Try providing better diagnostic.
And of course, make sure you include MFC collection classes header (I think it's afxcoll.h).
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them.
Jack Handey, Deep Thoughts
|
|
|
|
|
You did
#include <afxtempl.h>
?
|
|
|
|
|
I've tried to include both
#include <afxcoll.h>
#include <afxtempl.h>
in the stdafx.h but still it didn't work. The error message was
error C2143: syntax error : missing ';' before '<'
error C2501: 'CArray' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
Thanks. Anyone with any idea??
Newbies
|
|
|
|
|
I still believe there's something wrong around these headers, but since you have a sample that works (from MSDN), why don't you compare line by line stdafx.h in both projects. Programming is determenistic activity, so you should be able to find what's different.
Vagif Abilov
MCP (Visual C++)
Oslo, Norway
If you're in a war, instead of throwing a hand grenade at the enemy, throw one of those small pumpkins. Maybe it'll make everyone think how stupid war is, and while they are thinking, you can throw a real grenade at them.
Jack Handey, Deep Thoughts
|
|
|
|
|
CArray is crap. Use vector.
I presume someone else has told you how to fix it, the problem is I suspect to do with how you need to decare it, with the second parameter. But the core problem is, as I said, that CArray is garbage and should not be used.
Christian
We're just observing the seasonal migration from VB to VC. Most of these birds will be killed by predators or will die of hunger. Only the best will survive - Tomasz Sowinski 29-07-2002 ( on the number of newbie posters in the VC forum )
Cats, and most other animals apart from mad cows can write fully functional vb code. - Simon Walton - 6-Aug-2002
|
|
|
|
|
Your question is an absolute blur . Rephrase it or send your source and I'll help ya.
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
Initialize the combobox with an item.
Kuphryn
|
|
|
|
|
How can I code the interface like VS .net, like a docking dialogs with tabpages (solution explorer, class explorer, property dialog), and the editor tab window. Any sample like this I can find out ??
|
|
|
|
|
There are a lot of stuff like this, but for .Net programmers.
I like the Magic Library written in C#: http://www.dotnetmagic.com[^]
Ñ There is only one MP Ð
|
|
|
|
|
any stuff in VC++ ? as i've to use some C++ classes within it which they are not managed, and extensively use pointers. It's not convenient to use C# in this senario.
or can C# use unmanaged C++ classes with pointers ?
|
|
|
|
|
|
I am having a CFormView class, and in the CFormView, I'd like to create a CTabCtrl at runtime, and in the CTabCtrl, I am going to create a few tabs and CDialogs, and create the child controls for each dialog by CreateIndirect() at run time.
(no resource is used so far)
In this scenario, I have several questions:
1. Can the child controls notifications in the dialogs be handled in my CFormView class ?
2. Can I keep all the dialogs windows exists without distroying them ? I read from Microsoft example, each dialog is created when a new tab is selected, and the old dialog is distroyed.
As it may need much time to code this scenario, so i better ask the feasibility before trying. Thanks.
|
|
|
|
|
Is it possible to put a map container in a archive? I tried doing the following and I got an error:
archive << mymap;
I hope someone has an answer because I wouldn't want to cycle through and put each element of the map in a seperate archive..
Thanks in advance friends!
|
|
|
|
|
|
Stumped on STL and Archive wrote:
I tried doing the following and I got an error:
archive << mymap;
You just have to write the corresponding operator<<() yourself, probably iterating over the map and using the map-elemnts operator<<() to stream itself into the archive.
|
|
|
|
|
hi,i am doing a project in my school on "Control mechanism on intranet
messageing". VC++ and the MFC are chosen as the language for
the project. Now i do not know how to start due to following reasons
1)The mfc wizard will prompt on choosing the dialog base project or
Single document or etc. Since my project require me to have a login at the
first place(for control) i believe the dialog base is needed. But then
in this case there isn't any database support which i need.
2) If i choose the single document base, how do i make sure the
"login" interface will appear before any other interface. If i choose the dia log interface then is there SQL database support.
|
|
|
|
|
Hello, the codegurus around the world.;)
Basically, it depends on the customer requirement about SDI or Dialog based
application.
I think that ADO is easier to access SQL server (even Access database),
and ADO doesn't matter which GUI we use.
When we connect SQL Server?
When we check the client application of SQL Server, the menu has "Connect"
menu to access SQL Server. So, it is OK if we didn't show the login dialog
before SDI shows.
However, if the customer wants to do this, we have to do this.
We can put CMyDialog.DoModal() in the following functions before SDI shows.
BOOL CMyApp::InitInstance()
{
CMyLoginDlg(NULL);
CMyLoginDlg.DoModal();
.......
}
Please, don't send me your email about your questions directly.
Have a nice day!
Sonork - 100.10571:vcdeveloper
-Masaaki Onishi-
|
|
|
|