Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3042 articles
Browse latest View live
↧

Erorr asigning pointer to iterator ( only after porting to VS2013 )

Hello, im trying to port a code from vc6 to vs2013 and im having this error Code: Error        11        error C2440: 'initializing' : cannot convert from 'char *' to...

View Article


new to c++ and need help passing by reference

i have a project where i create a dice game, the user rolls 2 dice and the computer roles 2 dice. the player that wins 3 out of 5 rolls wins the game. I have completed the requirements, but i wanted to...

View Article


qsort() with strings problem

Hi guys, if I do this everything works fine: Code: char* strings[]={"Zorro", "Alex", "Celine", "Bill", "Forest", "Dexter"}; qsort(strings, 6, sizeof(char*), cmp_func); However, I like to allocate my...

View Article

Noob needs loop help - lstbox counter

I am pretty new to this subject. I am learning alright as I have toyed with java along with html, css etc.. I am trying to make a basic app that will loop through an unordered list with repeats and...

View Article

Image may be NSFW.
Clik here to view.

New to C++, code help.

I have this simple calculator code, but when I run it, I put two numbers as input and also if I want to add, subtract, multiply, ect. The output does the opposite. Can anyone help please? Attached...

View Article


Child Window on top of control

Hello I have a child window above an edit control. When the position of the control in the parent in the child on top of it is clicked the control gets topmost. Is there any way to prevent this? Thanks...

View Article

release build hangs at "Code Generation..."

Debug build links fine but release build linking hangs at "code generation" If I turn off whole optimization, it actually works fine, but I do need whole optimization. Does any one have some idea how...

View Article

DLL initilization problem

Hi, I 've build a C++ dll to communicate with c# (my current language). Dll initialize fine but members are destructed just after. so i get back "try to read or write in protected memory" that meens an...

View Article


Code generated by pre build event in visual studio

Hi, Folks, I set up some pre-build event to automatically generated some code, which then will be part of the project. The issue is that the so generated code will be not picked up immediately and I...

View Article


Image may be NSFW.
Clik here to view.

Help with Stack, please...

How to solve this application with stack? Check HTML tags :( Please help me ^^~ Attached Images  

View Article

run-time check failure #0 - the value of ESP error with conversions

I get this error: run-time check failure #0 - the value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a...

View Article

What is the code I use to generate these patterns?

1 0 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 1 0 1 1 1 1 1 and 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 All help is appreciated

View Article

Image may be NSFW.
Clik here to view.

Help mee please guys. İts İmportant homework!

hey everybody. i am a student of Computer Engineering. and i need your helps. i have a homework but its too hard for my programming level yet. please can you help me? this is my homework:...

View Article


How long does it take to compile and build?

The time it takes to fully prepare a build of an entire game from start to finish can vary wildly depending on several factors (including engine, available build tools, number of platform targets, etc)...

View Article

Fill Array with even numbers only

Hey guys i'm having a little issue here i need to fill two 2D arrays, the first one with even numbers from 1 to 50, the second one with odd numbers from 1 to 50. Heres what i have Code: #include...

View Article


Creating Process

Hello Everyone, I want to create 2 different easy processes in C++ 1st and then i wanted to share data between these 2 processes. Kindly help me regarding this assignment. Thanks

View Article

Help using .find_first_not_of to check true or false.

It runs well now but my I only have 2 problems... 1.even if I press Hi1234 still shows that i need lowercase,upper and number. 2.doesnt recognize the true for the program to end. PS...i know there are...

View Article


How to determine if a buffer is freed or not

I use new to allocate a buffer, as follows: BYTE *p; p = new BYTE[20]; ... delete p; After p is deleted, if I do NOT assign NULL to p, is there a way to determine whether it has already been freed?...

View Article

How to determine size of an allocated buffer

I use new to allocate a buffer, as follows: BYTE *p; p = new BYTE[20]; If I do NOT store the size of the allocated buffer, how to determine the buffer size via p only? Thanks

View Article

some class exercise

Hi, Please read the exercise no.2 of this: http://books.google.com/books?id=We2...epage&q&f=true I've written below code for that. I know this code is not complete but this exercise is somewhat...

View Article
Browsing all 3042 articles
Browse latest View live