Search:

Type: Posts; User: earnshaw

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,716

    Nope - the error came back - recompiled the...

    Nope - the error came back - recompiled the project and the icons dissapeared from the treeview.
  2. Thread: Starting c#?

    by earnshaw
    Replies
    4
    Views
    1,617

    I found the following book to be truly excellent!...

    I found the following book to be truly excellent!

    Pro C# with .NET 3.0 by Andrew Troelsen
  3. Replies
    5
    Views
    1,716

    OK - Ill give it a try - thanks in the meantime.

    OK - Ill give it a try - thanks in the meantime.
  4. Replies
    5
    Views
    1,716

    It doesnt sort my problem - yes I do show a form...

    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...
  5. Replies
    5
    Views
    1,716

    Annoying Icon Error in Treeview

    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...
  6. Replies
    1
    Views
    1,259

    Array Lists - adding keys???

    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...
  7. Replies
    5
    Views
    2,717

    I see - yes, of course its a method not a class -...

    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...
  8. Replies
    5
    Views
    2,717

    Well 95% of code is accessing external COM...

    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...
  9. Replies
    1
    Views
    1,897

    Read only attribute

    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#.

    ...
  10. Replies
    5
    Views
    2,717

    static classes vs objects

    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...
  11. Replies
    20
    Views
    18,416

    cant rest - have a deadline for 7th Feb!!!!...

    cant rest - have a deadline for 7th Feb!!!! ahhhh.....
  12. Replies
    20
    Views
    18,416

    Complete method for anyone interested

    private static int RoundToNearest100(int iNumberToRound)
    {
    int iToNearest = 100;
    int iNearest = 0;
    bool bIsUpper = false;

    int iRest = iNumberToRound % iToNearest;
    if...
  13. Replies
    20
    Views
    18,416

    Many thanks for that - my brain hurts and that...

    Many thanks for that - my brain hurts and that really helped.

    Thanks
  14. Replies
    20
    Views
    18,416

    return value to nearest 100?

    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
  15. Replies
    6
    Views
    7,493

    Actually anonytmouse - your comments about having...

    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...
  16. Replies
    6
    Views
    7,493

    Ok here are the first 10 or so errors: See if...

    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...
  17. Replies
    6
    Views
    7,493

    I omitted the type to stop defining them as local...

    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...
  18. Replies
    6
    Views
    7,493

    Global variables keep resetting

    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...
  19. Replies
    11
    Views
    4,176

    Thanks RezaK

    Thanks RezaK
  20. Replies
    11
    Views
    4,176

    Have compiled succesfully in C now! Out of the...

    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...
  21. Replies
    11
    Views
    4,176

    This is the c code #include "c_dll_4_vb.h" ...

    This is the c code


    #include "c_dll_4_vb.h"



    long __stdcall Resolve_Name_To_Ip
    (char *pcDomainToResolve, char szReturnIP[500], int &iSize)
    {
  22. Replies
    11
    Views
    4,176

    I found that I could compile ok a C++ dll (no...

    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...
  23. Replies
    11
    Views
    4,176

    This is C code, and I want instructions to...

    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,...
  24. Replies
    11
    Views
    4,176

    Creating DLL in MS VS 6.0 in C

    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),...
  25. Replies
    24
    Views
    5,129

    die!

    die!
Results 1 to 25 of 38
Page 1 of 2 1 2