Nope - the error came back - recompiled the project and the icons dissapeared from the treeview.
Type: Posts; User: earnshaw
Nope - the error came back - recompiled the project and the icons dissapeared from the treeview.
I found the following book to be truly excellent!
Pro C# with .NET 3.0 by Andrew Troelsen
OK - Ill give it a try - thanks in the meantime.
It doesnt sort my problem - yes I do show a form straight after the 2 lines of code - sorry for limiting it to just these 2 lines but the other code is a bit superfluous to the problem - as these 2...
This is rubbish! I use these 2 lines to overcome the bug that makes icons not show in treeviews:
Application.EnableVisualStyles();
Application.DoEvents();
I put the lines just before I...
I have an Arraylist of objects - but I want to attach to each object a number (in this case distance of type int). This will be useful for me to sort on the distance value, the shortest to the...
I see - yes, of course its a method not a class - :o
Thing is Ive got loads of these little encapsulated methods every where, some void others returning arrays, strings, ints etc.
It all...
Well 95% of code is accessing external COM libraries which work with a GIS application. Some code is generic (see below), but how could this be an object - and would it be necessary??
private...
How do you programatically remove the "read-only" attribute from a file in a certain directory. I know in VB - I used a shell command in VB - but I suppose there is a more elegant way in C#.
...
OK - bear with me, bit of a newbie here - coming from a VB background.
Basically VB has messed my head up, now I am trying to figure out how I should go from static classes or somehow try and make...
cant rest - have a deadline for 7th Feb!!!! ahhhh.....
private static int RoundToNearest100(int iNumberToRound)
{
int iToNearest = 100;
int iNearest = 0;
bool bIsUpper = false;
int iRest = iNumberToRound % iToNearest;
if...
Many thanks for that - my brain hurts and that really helped.
Thanks
Does anyone know an algorithm to return any number to the nearest 100?
eg. I pass in 2733, algorithm returns 2700.
4599.....returns 4600
12....returns 0
98....returns 100
Actually anonytmouse - your comments about having variables being above statements was the clincher - I moved it well down the code and everything compiles just fine!!! Many thanks - and I feel...
Ok here are the first 10 or so errors:
See if you can make sense of them.
Compiling...
ExtractRas.c
c:\cprogs\extractras\extractras.c(71) : error C2143: syntax error : missing ';' before...
I omitted the type to stop defining them as local and hopefully assign values to globals, however, I got a staggering 103 errors and 26 warnings. I wont post them as there are too many.
Its as if...
I have 4 global variables defined in my starter module of a C dll, like so:
LFLOAT GTEMPX;
LFLOAT GTEMPY;
LFLOAT GTEMPSIZE;
long GPYRAMID;
long __stdcall ExtractRas(LFLOAT *tempX, LFLOAT...
Thanks RezaK
Have compiled succesfully in C now!
Out of the code posted here - and I dont fully understand it all, especially WSAStartup - what are the essential prerequisites in order to get any program you...
This is the c code
#include "c_dll_4_vb.h"
long __stdcall Resolve_Name_To_Ip
(char *pcDomainToResolve, char szReturnIP[500], int &iSize)
{
I found that I could compile ok a C++ dll (no surprise there). I was just testing it and seeing what was involved. I then tried to compile the same code, but as C, and it didnt work, which didnt...
This is C code, and I want instructions to compile a DLL in C - but I'm using Visual C++, because you can make it compile in C - and I have successfully made C programs in the past using this method,...
Using Visual Studio 6 C++ (but programming C)
1. Have created new project of type Win32 Dynamic Link Library.
2. Have got all c code (i.e. imported from standard project I made earlier),...
die!