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

program

Write a c program to accept a 5 digit number and find the sum of second and last digit

View Article


Passing Arrays from Javascript to COM object

I want to pass an Array object from Javascript to a member function of COM. I thought I can use SAFEARRAY for that purpose. The COM Implementation of the code is like below VARIANT...

View Article


ODBC COnfiguration issue

Hi, I am trying to call SQLConfigDataSource() in my program, but apparently I receive the following: Quote: The setup routines for the D ODBC driver could not be found. Please reinstall the driver....

View Article

How do you create columns on Autocompletionlist in VB.NET?

How do you create columns on Autocompletionlist in VB.NET? From code not design view. My vb 2010 does not support that function Here is my sample code: Me.Autcomplete.ColumnHeaders = True

View Article

Assistance with enumeration in combination with user-defined functions.

Hello: I am having a little trouble with an assignment that involves enumeration. While my code seems to work, my instructor informed me that I am only to use user-defined function, with for...

View Article


HHmmss.fff - HHmmss.fff - how to achive time difference (duration)

How to achieve time difference int32 TimeDiff() { textBox1->Text="100501.820"; textBox2->Text="100502.831"; return // how to get time difference in milisecond? }

View Article

Binary Tree

Hello everyone, I've been having problems running this program and i cant figure out the problem. its just a simple program to read a mixed file that has number 1-100000 and sort them in a binary...

View Article

Unexpected result when assigning character to std::string or MFC CString

Please can someone explain what I'm seeing here? I expected the same result, a compiler error, in both situations. What's different when the variables are part of the struct? Sorry if the answer is...

View Article


Looking for someone who is willing to help me with my project

Hey I am looking for someone who is willing to help me with my project. I am starting a website where users can get programing help, ebooks, tutorials, software(open-source,self coded,...),game server...

View Article


Image may be NSFW.
Clik here to view.

XOR encryption using CString

ive been trying to figure out how to do a basic XOR encryption with CStrings but i have errors im having trouble with the for loop character counter. the code i have to count the number of characters...

View Article

How does Windows Server 2012 load visual studio 2005 build dlls?

Hi, My application and the depency dlls were all built using Visual Studio 2005. And every thing works fine on Windows 7 and Windows Server 2008 but not on Windows Server 2012. I'm seeing an issue in...

View Article

Loadiing Webbrowser control dynamically

I am developing a WYSIWYG application. While saving it generates an asp code and save as an *.asp file. Now I have to read the file. IWebBrowser2::Navigate is not working. It treats the file as asp...

View Article

Image may be NSFW.
Clik here to view.

Coloring thumbs on CScrollBar

I am trying to coloring thumbs on CScrollBar control ... in order to achieve that, I derived a class from CScrollBar, named CScrollbarExt, and I handled CtlColor: Code: protected:...

View Article


Why is Microsoft pushing Windows 10 so hard?

I've been running Windows 7 ultimate for several years - doing programming largely in C++ using Visual Studio 2010 and lately 2013. I am largely happy with these. I keep getting popup a dialog to...

View Article

Function arguments are undefined in function call

It's been a while, and I've partially forgotten how to manage the scope of variables. Here's the code: Code: #include <cstdlib> #include <iostream> #include <string> using namespace...

View Article


Variable for a member variable

Hello I have 2 combo boxes in the same class that use the same code. So I wrote a function for combobox1 and another for combobox2. Is it possible to assign a variable for the controls and passing it...

View Article

Simple program executed without using return 0 in main?!

Somehow, my simple program that calculates the area of a circle compiled and ran: Code: #include <iostream> #include <cstdlib> using namespace std; int main() {         const double PI =...

View Article


MFC EXE COM object not accessable through c++ program

I made an MFC program. Added COM object through appwizard. Just added a property to that. To test it I used vbscript. It is working. But when I use C++ client I get E_NOINTERFACE. I am querying only...

View Article

Image may be NSFW.
Clik here to view.

Help me! algorithm for difficult probem

Mr. David is planning a business trip to the island of Manhattan where he has arranged meetings with buyers at their offices. He wants to stay in a hotel that is not far from their offices. Assume that...

View Article

Asynchronous call

Hi, In order to put the file into Trash I have to call SHFileOperation.But this call is synchronous which means I will have to wait until the operation finishes. Is there an asynchronous call which...

View Article
Browsing all 3042 articles
Browse latest View live