I am developing a simple personal finance program. In this program I have a class (CAccountViewer) that simply displays the transactions from a particular account and also allows to enter new...
Type: Posts; User: Dark_Phoenix
I am developing a simple personal finance program. In this program I have a class (CAccountViewer) that simply displays the transactions from a particular account and also allows to enter new...
I'm begining to think that Bubba is right. The above code is being called (and the error is occuring) when the program exits. I think the problem is due to the way I am exiting. I am calling the...
I hate debugging.... That is the line that the dubbuger is reporting the access violation on. Not sure what it is or how to narrow it down any further than that.....?
Here is the "do some stuff" part (added to OP if that makes it easier..)
{
SAccountInfo AI = iter->second.GetAccountInfo();
if (!oFile.Write(AI.AccountName) )
{...
I am getting an access violation when tring to access elements in a std::map. The violation occurs on the red line below.
typedef std::map<wxString, CAccount> mapAccountList;
class...
OK, I got it... I split my test pogram like you suggested and I see what you mean. So now I have
struct DATA
{
char s1[30];
char s2[30];
int i1;
int i2;
...
Thanks. serialization is what I have been doing when working with std::strings, was just playing around with some ideas. I had a feeling that this would not work right, just did not quite...
I have two questions with reading / writing complex data in a binary file. I have this code which saves a complex type (struct) in a binary file.
#include <iostream>
#include <string>
#include...
Yeah, that's one of the very few hits I got on google. I know how it's done I just don't know what software package I can use to communicate with the server.
Anyone?
Anyone know anything about PBX phone systems? We are switching some office around at my work and want to change the display names on the phones to match the extensions. The way I understand it is...
OK, I figured it out... forgot to put a break in my DialogProc. Anyway, here is what I have... It works but I want to know if it is right?
LRESULT CALLBACK MainWinProc(HWND hWnd, UINT Msg,...
This is giving me an error 'Invalid Window Handle' but I can't figure out why.
LRESULT CALLBACK MainWinProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
{
switch (Msg)
{
...
OK, I see... That makes sense. So as long as all the definitions have a matching declaration in the .h file then extern c is not needed in the cpp file.
Now, would the same hold true for class or...
I thought so... I was going by both MSDN's example, which I though was a bit hard to follow, and this one, which shows the extern "C" only in the .h file. I went back and added it to the .cpp file...
ok, nevermind... i had an IDE setting wrong. It's working now.
I created my first (VERY) simple DLL that contains 3 functions... add, subtract and multiply. I then created a program to test the DLL. Problem is the add function works fine but it seems like the...
This sounds interesting. I don't have any experience with creating and using DLL's but this could be good project for me to gain some more knowledge with.
So in theory I could create a basic menu...
I have looked into other laguages that do support this but (for now) I kinda want to stick to C/C++ until I have a better understanding of the language.
Right. So if I am having to go in and map all the menu string-function pointer pairs anyway, then is there any point in having the external text file? Seems like it would be just as easy to hard...
I'm working on a "Menu Manager" that will let me display menus that are saved as a text file. This way I can add or remove menu items without having to recompile the whole program. The problem I am...
Anyone know of some good, perferable free or free demo, image enhancement software? I have a digital picture of some parts that have rather small writing on them that is blurred. I want to be able...
Nice utility, Thanks for that
And that was the problem, I was not calling InvalidateRect()
Thanks for all the help guys!
Well, looks like it may be in how I am creating my framework. I've used this method in some simpler programs that have worked fine but now it seems like it is broken somewhere...
Basic functins...
I wish it was that easy (or is it?) but I want to be able to add some other controls to the dialog as well.
So I tried something a little easier... printing some text in response to a menu...
Thats what I thought at first too... So I put in some code to check the handles...
inline void DisplayHandle(const char *text, HWND hWnd)
{
std::stringstream ss;
std::string s;
...