Socket programming using VC++ in MFC
I have writen program for server socket (TCP ) using VC++. I want to receive data continuously through server after clicking Connect button till we click on Stop button. My code receives data only once...
View ArticleDetecting and/or Connecting to a USB device (Android Mobile Phone)
So I'm working on a small desktop application that prints out basic information from an android device ie) IMEI, Model, Etc. Though I'm kind of stuck having run into a problem.. How do you get a C++...
View Article[RESOLVED] My program keeps stopping at my InOrder function for my 2-3 tree.
As said in the title, my inorder_two_three is not working correctly and I cant figure out the reason. Code: #include <iostream> using namespace std; struct TreeNode { int info;...
View ArticleKnowing if a memory address has been malloc'd
Is there a way to know if a memory address got assigned with malloc() / realloc() etc? Consider this example:- Code: char *string = malloc (20); free (string); // sometime later... free (string); //...
View Article[RESOLVED] "Exception thrown at 0x01332B22 in Project5.exe: 0xC0000005:...
Hello, I am receiving this message when i try to debug my program in Visual Studio 2015. It happens when the program reaches the insert function. Any way I could fix this problem? If there are other...
View ArticleUse of 'this' (class with multpile base classes)
I've just come across this in some code and I'm wondering if it's safe. There's a class defined with multiple base classes:- Code: class LuaWindow : public Gtk::Window, public...
View ArticleLab assignment
I need help creating this program for my assignment. I have done 1a, but the for loop isnt really used to get the average of the 10 numbers. for 1b I don't know how to do the experiment 100 times and...
View ArticlePayment program
Im making a program that shows the info of a payment plan. I have the main formula done but dont know how to make the for loop with i to break down all the info for every month. I want it to look like:...
View Articlestatic variable has 2 x different addresses !!
I'm trying to debug a program which is crashing at a call to free(). I see this in one of the header files:- Code: typedef struct Node { TValue i_val; TKey i_key; } Node; At the moment, I can't see...
View Articlebinary operator overloading; implicit type conversion
Code: class my_bool { private: bool value; public: my_bool(bool value) : value(value) {} explicit operator bool() { return value }; friend my_bool...
View Articlemanage with open source library - import
Hi, I have a problem with importing library into Visual studio to manage with open source library SeqAn. Can someone describe steps how to import library into project? for later use. tnx for answers.
View Articlereading pgm files
Hi. I have been given a function which reads off a pgm image into C++ which I'm having problem with. It seems that it can only read pgm files beginning with P2, and since I don't know good ways to...
View ArticleUsing OCX in ALT/COM server..
Hi, Can anyone let me know if we can use the MSSCript.ocx in a COM server. When I add the MSSCript.ocx changes in my COM Server code ,my COM server is not registering . I also tried registering OCX...
View ArticleSetting a string to a set number of charecters
Hello, I have some homework and I needed some help with finishing my code. The question is this: Create a program that reads a text file, named intext.txt, and writes an edited version of the file,...
View Articlec++ rotate 2D shape
Hay everyone This is going to be a really basic concept but I am struggling with this immensely and am finding my self getting more and more confused as time goes on so any help with this would be a...
View ArticleAccess violation reading location 0x00000000
Call Stack: > msvcr80d.dll!memcpy(unsigned char * dst=0x01ddfd20, unsigned char * src=0x00000000, unsigned long count=8) Line 318 Asm Members.exe!CQueue::Pull() Line 47 + 0x18 bytes C++...
View ArticleVisual C++ 2015 search path not working
Even after including .h folder to Projects>C++ General>Additional Include Directory it cannot detect .h files. I included, C:\Qt\Qt5.6.0\5.6\msvc2015_64\include to additional include directory...
View ArticleHow to draw line with 2 alternating colors?
Hello, any ideas? How can I create a pen that draws e.g. 4pixel red and then 4pixel blue? thx. br Ralf
View ArticleFor Loop/Indexing
Hello to all, Working on a particular problem and have everything squared away except for one thing. Basically i need to create a for-loop that loops 20 times; And each time it loops, you read a name...
View ArticleError: 'uint32_t' : redefinition
Code: error C2371: 'uint32_t' : redefinition; different basic types The project was up'd from Visual Studio 9 to Visual Studio 2013 The header files of VS were changed in some ways. How do I get...
View Article