Fread on file
I am trying to read and store a txt file with format below: 2.5;abc;2,4000 2.5;bef;3,2000 2.5;ref;3,1000 I try the fscanf( pFile, "%d;%s;%d,%d", buffer,buffer2,buffer3,buffer4 ); to store 2.5 to...
View Articlepass parameter in oninitdialog
Hello, Thank you very much for taking time from you busy day to help me out. I very much appreciate it. I need to pass a variable to a dialog box. Code: Doc* pDoc; Dialog dlg; int input...
View Article[RESOLVED] randomize ( )
Hi, Is there any randomize ( ) function in Visual C++ 6.0? What is its prototype? Plz guide me. Zulfi.
View ArticleOpen a dialog from DLL
How can I create a dialog as a DLL ? I have a SDI MFC app (CView is based on CFormView) and from a button I want to load a modal dialog, but that dialog must be developed as DLL ... I didn't find...
View Article[RESOLVED] CreateProcess and WaitForInputIdle, problem
Hello, I have a problem with creating a process and waiting until the main window of the new process was shown. I thought I can wait for it with WaitForInputIdle(pi.hp,INFINITE); But when the function...
View ArticleNeed urget c++ help (nested if-else)
I'm having trouble with making a nested if-else program for my computer programming class, I really need some help with getting the variables set up and I believe I can work it out from there, but as...
View ArticleTurbo C equivalent command in Visual C
Hi, I am using visual C 6.0. I have a code in turbo which uses following command: Code: randomize(); dx1=random(c2)-c3; where Code: int random (int num ) returns a number between 0 and (num-1) The...
View ArticleSelecting right enviroment for programming vb vs vc 2013
Hello everyone, need advice im planing to start using .net for deveveloping my apps, i am currently using vc6 which its pretty old and unconfortable since intelisense not always work compiler has bugs...
View ArticleHow to "refresh" a Datagridview?
Hi In Form1 I have a Datagridview showing the content of a table from DataBase. In Form2 I add or modify a row in that table. So, when I get back to Form1 I would want the DataGridView get updated...
View Article(IntelliSense: no operator "
I am working on a assignment for school and I am having some issues i havnetbeen able to figure out my first issue is that i keep getting these external errors and then my cout stopped working, i...
View ArticleConstructor with functional / construction via lambda
I have a class which upon construction has a part which should be executed when the constructor has finished "enough" to make the call valid. Take the following simplified class example (the actual...
View Articleproblem with CEdit in CDialogBar
Hello, please help me with a special behaviour of a CEdit-control in a CDialogBar: My CDialogBar is a member of my MDI-mainframe-class. The menu of the mainframe have an item with an accelerator "r"....
View ArticleControl on Parent Window
Hi , I need Edit Box and List Box controls on the Parent Window or Main Window of my application. I know how to use them in dialogs .. PL give me guide lines or tutorial link. I will need to...
View ArticleUnicode problem
Hi All, I am using VC++ 2005, Multibyte char set. I am getting hex values from stream and i have to show it in respective language. in below example char mt[] = { 0x0C, 0x85, 0x0C, 0x86, 0x0C,...
View ArticleArrays and Enumerated Data Types
I am doing a programming assignment. This program asks you to collect statistics on precipitation and temperatures from the four quarters of a year and print the calculated results. It is an exercise...
View ArticleBubble Sort and Selection Sort
You will write a program that uses a multidimensional array having 3 rows and 8 columns and sorts each of the rows using both a bubble sort and a selection sort. You must declare the array inside of...
View Article#import and raw_interfaces_only
I am adding some code to legacy C++ app, it imports the excel14 tlb with raw_interfaces_only. I now I want to use excel.Application->get_dialogs method to get a save as dialog. this method...
View ArticleSystem::Object in C++
How do I create a System::Object in an unmanaged C++ project? Thanks
View ArticleProblem while implementing tool tip in listctrl of report type.
Hi, Below is my Code Code snippet wher I am facing problem. every time "pNMHDR->idFrom" is returning 0. I even put "EnableToolTips(TRUE);" in the oninitdialog method of dialog class....
View ArticleCComPtr System.AccessViolationException
Hi all, I have a C++/CLI console application and I should pass a CComPtr<T> to a class but when I try to access it, occours a System.AccessViolationException. Following the main code: Code:...
View Article