Is it possible to multi thread an ansi C console application on a 32 bit windows 7 platform using _beginthread. Also is the entire application subject to the 2 gig memory/application of windows or can each thread allocate 2 gigs memory. I already have the 32 bit app but don't want to rewrite for...
I have a C program that compiles fine in 32 bit but when I try and compile in 64 bit I get the error: error LNK2019: unresolved external symbol __imp_InitCommonControls referenced in function ProgressBar. I've included windows.h and commctrl.h. In the project \properties\VC++ Directories\Include...
I have a program that has many calloc allocations for 2D arrays and finally a calloc call a = calloc(rc, sizeof( char)); The program runs fine for smaller file sizes but when file sizes get larger this calloc returns a pointer to NULL; I have freed all previous calls to calloc before this last...
I need to read a csv file that has missing values. The program is suppose to assign the values from the csv to 5 arrays. The program works fine when all fields have values. The problem is when the program encounters ,, instead of a value it skips the pointer assignment. When it encounters a...
I am passing a new or existing file to the sub listed below. If the file exists I want to replace it with the new data while keeping the original file name. It currently appends data to an existing file with each call to the sub. Thanks in advance
Sub SaveToFile(FileNameOrNumber As Variant)...
I have a collection that contains control properties such as MyForm.Mycontrol.Text stored as type variant. Is it possible to loop through the collection and set each property to a value. The way I'm doing it now is looping through the collection and within that loop, looping though each...
Is there a way to load MDIchild forms invisibly? I have tried using move to move them off the screen and setting the form.visible property to false but they still flicker visibly on the screen as they load before they move. I need them loaded but not visible.
I'm trying to distinguish between textboxes that are in control arrays and those that aren't in control arrays on a form. If Text1 is not a control array and Text2 is a control array I can do
Dim ControlType1 as string
Dim ControlType2 as string
ControlType1 = TypeName(Text1)
ControlType2 =...
I am trying to write a function that receives a varying number of double ** as args. when I try to acces the double ** I get an unhandled exception access violation. Can someone tell me whats up.
//num is the number of arguements being passed. arguements will be double**
void...
Is it possible to create a progress bar on a message box in C. I'm creating a C dll not C++ though I'm using the MS Visual C++ compiler with no MFC as a console application.
I have forms with text boxes on them. I would like users to be able to enter text in the boxes and then be able to save the text to a file which can later be used to restore the text to the textbox. I believe that I need to use serialization. Does anyone have sample code to show me how to...
I'm passing an mathematical equation as a string from visual basic to a C function the contents of the LPCSTR would look like
SI0=(SI1 + SI2) * SI3 / SI4;
Where SI1,SI2,SI3, and SI4 are variables that exist in the function. How do I convert the string into an executable line of code.
I'm trying to convert some C programs into a dll in Visual c++. The subs will be called from a visual basic program. when the sub readfile is called I get the error R6002 Floating point not loaded. if I change the floats to int and change the data the dll works fine. Can anyone help me with...
I'm running VB 6.0 and trying to use a multipage form for the first time. I'm loading it from MicroSoft forms V2.0. I have been trying to figure out how to drag and drop controls such as picture boxes and comboboxes etc to specific pages of the multipage. I drag the control to the page tab that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.