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

looping lines and blocks of characters

all, I have a file that is like the following, with patterns of pipes in it: Code: |||  ||  | | |  ||| | | | ||  || || I have to consider each row of pipe characters to be in blocks of 3 characters...

View Article


Using an object module in UNIX/Visual Studio

Hello, for a homework assignment I need to download a .h, .cpp and .o (which I guess is called an object module?). I'm used to using Visual Studio Express for my programming, but I guess you can't...

View Article


control structure outputting wrong iterations via ints.

all, I have this: Code:                         for (chr_min = 0; chr_min <= 24; chr_min += 3)                         {                                 strOut = "";...

View Article

Image may be NSFW.
Clik here to view.

Pseudopointers

I recently helped a beginner with solving some situation. he needed to load 10 integer numbers, getting to list them and to tell how many of them resulted in a repetition (and how many times!). well,...

View Article

error c3867 function call missing argument list; for calling a Thread function

Hi All, I searched the web for error: C3867... and the discussions where murky or obscure. My code excerpt is: #pragma once #include <windows.h> #include <stdlib.h> #include...

View Article


lib using OLE DB TEMPLATE

Hi, thank you for reading this thread. My question contains two projects that are under the same solution. Project_1: I have created a dll where I use inside the project, OLE Db Template. In the...

View Article

Accessing managed dll from c++

I need to access a DLL made in C# from C++ (v 6.0). I found this article: http://support.microsoft.com/kb/828736 But I run into problems whenever I try to register the DLL. It suggests that I add...

View Article

Views Tabs and Splitters

Hi, We know a document can have multiple views, if we want to display these views simultaneously using the doc/view model then we can use splitters embedded in the ChildFrame or tabs using the CTabView...

View Article


problem changing code from TCP to UDP

i had created a client server program in MFC using TCP but by doing this the server can only work on one computer because you have to tell the client the ip address to connect to i.e Code:...

View Article


About SQLConfigDataSource

Hi, I used SQLConfigDataSource to create a MS Access file, it works fine. But, right after the creation of the file, I want to create a session to it using CDataSource::Open. The code to open a...

View Article

Output error dft() function.

I am trying to use following code, but it gives error. Error message is like : OpenCV Error: Assertion failed (dims <= 2 && data && (unsigned)i0 < (unsigned)si ze.p[0] &&...

View Article

Implementing dynamic database structures using C++

Hi All, We´re designing a new software and we want it to be customizable without code. That, for us, mean we can change the software behaviour without re-writing code. All will be developed using C and...

View Article

can a program become a service?

i have a very basic client server program in c++ console application where the client sends a message to the server, the server accepts the message and echoes it back to the client. can the server...

View Article


How get same info as Win32_PortConnector from DeviceIoControl

I can tons of information by calling DeviceIoControl (such as device ID, device description, whether it's connected or not) since I couldn't do it all with WMI. But I haven't figured out how to get...

View Article

Making a piston-type wavemaker

Hi, im trying to figure out on how to model a piston-type wavemaker in my Smoothed Particle Hydrodynamic / meshless basin model. First, for the boundary treatment, I have tried to assigned number to...

View Article


SPH Modelling

Hi, I am doing numerical modelling of regular wave slamming on rigid body structure with SPH method. Smoothed Particle Hydrodynamic is a meshfree, Lagrangian, particle method, which is particularly...

View Article

How to fit application on smaller laptop

We have developed MDI application on 17 inch monitor in VC++ 2010 MFC. But now management wants application to run on 10 inch laptop. Application does not fit,it goes out of screen. Please tell me how...

View Article


How can I calculate PCA?

I am trying to use PCA, but it gives memory access violation error. Here is my sample code. Code: int main(...) { ................. vector<float>input_array;     for(i=0;i<number_of_lines;i++)...

View Article

bpp bitmap images are not dispalyed in Windows 8, why

Hi, I have develope a dialog box, where I used the bitmap images and modified the dialog box in sucha a way that user can use that bitmap image to minimize the dialog or maxixe the dialog. but it works...

View Article

using cout to display a scrolling screen of binary numbers

Hello all, Can I do this? I realize that cout is just throwing data to the shell console. This is what I have for a routine that I want to call over and over again for decimal numbers 1 to 65535...

View Article
Browsing all 3027 articles
Browse latest View live