Search found 324 matches

by awsdert
Tue Jul 30, 2013 8:47 am
Forum: C++ Development
Topic: wxAssertFailure at program startup
Replies: 5
Views: 1792

Re: wxAssertFailure at program startup

I managed to get that far as well, guess I'll try create a new project from template and compare the differences of the settings, thanks anyways. Edit: Try as I might I cannot find the problem, I give up for now Edit: Tried compiling the new project and got an immediate return from the compiled prog...
by awsdert
Mon Jul 29, 2013 11:20 pm
Forum: C++ Development
Topic: wxAssertFailure at program startup
Replies: 5
Views: 1792

Re: wxAssertFailure at program startup

I'm guessing no else was able to figure it out, darn. I was hoping that at least doublemax who is clearly more experienced (and probably more skilled) than I would be able to provide some indication of what I need to do. Edit: I'm going to bed, I'll check back as soon as I remember - which will prob...
by awsdert
Mon Jul 29, 2013 9:46 am
Forum: C++ Development
Topic: wxAssertFailure at program startup
Replies: 5
Views: 1792

Re: wxAssertFailure at program startup

I have work now so I won't be responding for the next 9 hours
by awsdert
Mon Jul 29, 2013 7:37 am
Forum: C++ Development
Topic: wxAssertFailure at program startup
Replies: 5
Views: 1792

wxAssertFailure at program startup

I'm not even sure I got this in the write part of the forum but anyways the program compiles fine but as soon as I run the program in debug I get the above error from init.cpp(65) in the wxWidgets source, try as I might I cannot see what is causing this so I now rely on help from here. It's a small ...
by awsdert
Mon Jun 24, 2013 6:03 am
Forum: C++ Development
Topic: Comparison issue
Replies: 1
Views: 874

Re: Comparison issue

Turns out there was a slight flaw with my division handler, fixed now so the infinite loop no longer occurs.
by awsdert
Sun Jun 23, 2013 2:48 pm
Forum: C++ Development
Topic: Comparison issue
Replies: 1
Views: 874

Comparison issue

I have a function that converts a buffer into a string, my problem is that the comparison handler doesn't always produce the correct result which is causing an infinite loop at times. I have tried to find the origin of the issue but I cannot find it so I decided to post the code here at see if anyon...
by awsdert
Sun Jun 23, 2013 1:53 pm
Forum: C++ Development
Topic: Binary division issue
Replies: 1
Views: 1007

Re: Binary division issue

Fixed, the last implementation I had only supported divisors of 1 byte hence the need for a re-write, here's the new code for reference: zxInt zxInt::m_div( zxInt& source, zxInt& value ) { sint sEnd = source.m_count, vEnd = value.m_count, end = vEnd; if ( sEnd > vEnd ) end = sEnd; source.res...
by awsdert
Sun Jun 23, 2013 11:01 am
Forum: C++ Development
Topic: Binary division issue
Replies: 1
Views: 1007

Binary division issue

I'm trying to implement the fastest type of division for my variable length integer object and I'm having trouble getting it right. The current output: bits : 0001 value : 00CF0BE5 : 13568997 zxInt : 00FF8000 : s ui32 : 00CF0BE5 : 13568997 bits : 0003 value : 00CF0BE5 : 13568997 zxInt : 00FE0000 : s...
by awsdert
Sun Jun 23, 2013 10:17 am
Forum: C++ Development
Topic: Binary subtraction issue
Replies: 2
Views: 1391

Re: Binary subtraction issue

Fixed it, was issue with vBit & detection of zero, switched to faster detection, operator== needs some work by the looks of things. New code below: void zxInt::m_rem( zxInt& source, zxInt& value ) { sint sEnd = source.m_count, vEnd = value.m_count, end = vEnd; if ( sEnd > vEnd ) end = sE...
by awsdert
Sun Jun 23, 2013 9:23 am
Forum: C++ Development
Topic: Binary subtraction issue
Replies: 2
Views: 1391

Re: Binary subtraction issue

Got closer to my desired result, above has been updated to reflect current state.
by awsdert
Sun Jun 23, 2013 9:19 am
Forum: C++ Development
Topic: Endian detection / swapping
Replies: 1
Views: 1014

Re: Endian detection / swapping

Never mind, I managed to fix it. The issue was with how I turned Little Endian into Big Endian and visa versa.
I've now got the expected byte order.
by awsdert
Sun Jun 23, 2013 8:35 am
Forum: C++ Development
Topic: Endian detection / swapping
Replies: 1
Views: 1014

Endian detection / swapping

I must've misunderstood how to do this because it is coming out wrong on my output: zxEXP zxENDIAN_TYPE zxSysEndian( void ) { static ui32 dword = 0x12345678; static ui08 *byte = (ui08*)&dword; switch ( byte[0] ) { case 0x12: return zxENDIAN_BIG; case 0x78: return zxENDIAN_LITTLE; default: return...
by awsdert
Sat Jun 22, 2013 8:40 pm
Forum: C++ Development
Topic: Binary subtraction issue
Replies: 2
Views: 1391

Binary subtraction issue

The first byte here always comes out wrong, I've checked the used operators and they behave as expected. Example output: bits : 0001 value : 00CF0BE5 : 13568997 zxInt : 00CF0BE4 : s ui32 : 00CF0BE4 : 13568996 bits : 0003 value : 00CF0BE5 : 13568997 zxInt : 00CF0BE2 : s ui32 : 00CF0BE2 : 13568994 bit...
by awsdert
Thu Jun 06, 2013 2:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Issue exporting function
Replies: 2
Views: 1307

Re: Issue exporting function

Never mind, I just realised I made a typo, I didn't notice because the font I'm using has the G looking very similar to C which I have just corrected.

Edit: Teach me to use "Courier New" won't it :D
by awsdert
Thu Jun 06, 2013 11:19 am
Forum: Compiler / Linking / IDE Related
Topic: Issue exporting function
Replies: 2
Views: 1307

Re: Issue exporting function

BTW I've never made a DLL for loading during runtime before.