Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
S

suguimoto

@suguimoto
About
Posts
50
Topics
25
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • VB 2005 RANDOM WITH PERCENTAGE
    S suguimoto

    Hello there, I would like to know if it´s possible to randomly pick a number based on a percentage, for example: from 1 to 5. nº % 1 10% 2 20% 3 10% 4 20% 5 40% I have 40% to pick 5 instead of the others. Is it possible to be implemented in VB2005 ?

    Visual Basic tutorial question lounge

  • combining 2 or more sql statements
    S suguimoto

    1, 2: Try this:

    SELECT amount, note FROM credit, payment WHERE customer_Id = $cust_id

    To join them all, try JOIN command, I really dont remember how it would work for you.

    MySQL database sales help

  • Lottery Statistics
    S suguimoto

    Hello there, Im trying to come up with a statistic from a lottery data base (6 numbers for each draw) , it´s supposed to get that numbers that have been showed more times, for example how many times number '01' has been seen, '02' and so forth. Each draw is composed of n1, n2, n3, n4, n5 and n6. Hou can I get as return the statistic? Thank you

    MySQL tutorial question

  • VB6 Serial Comm Crashs Visual Studio
    S suguimoto

    Well, it´s easy to program and does not need the whole .net framework to run with. I know it´s out of date, but it´s still reliable for simple tasks and even really old pcs can run. Thanks but... Does anyone have a clue about it?

    Visual Basic csharp visual-studio hardware algorithms

  • VB6 Serial Comm Crashs Visual Studio
    S suguimoto

    Hello everyone, I got a really strange problem. I could make 2 computers to communicate to each other through hyperterminal, 115200,8,n,1 Hardware(CTS,RTS). Then I decide to make a VB6 program in one of those (with the same parameters). Sending data from VB6 is just fine (the hyperterminal in the other computer shows the same data), but when it receives any data the program crashes and the program manager shows 99% of the cpu is beings used by VB6 :confused::confused: Note.: There´re no infinite loops neither "OnComm" function is avaible in the algorithm. Did anyone have this problem? Or knows how to solve it? Thanks ;)

    Visual Basic csharp visual-studio hardware algorithms

  • [VB6] Is there a reverse Dir$() Function?
    S suguimoto

    Hello guys! I´m using the Dir$() function, that returns the paths of the files that I want. I noticed that the sequence is always the same. I need a reverse function just like a navigation through image files, backward and foward. Does anyone have an idea? Thanks!

    Visual Basic question

  • VB6 App Causing memory error
    S suguimoto

    Hi Christian, I´m still using it, because our device is stable with vb6. The next step is vb.net (far future). But the current error makes my program crashes, =/ I´m using some specifics apis´s, not mine. I really dont know what´s happening. Thanks anyway

    Visual Basic hardware performance help question

  • VB6 App Causing memory error
    S suguimoto

    Hi, I made a program in visual basic 6 that is causing memory error running on Windows XP Embedded. The runtime error message: "This instruction at "0x7c910f29" referenced memory at 0x00000000" The memory could not be "read". Click on OK to terminate the program" [ OK ] The total disk space is 1gb, whose 500mb are used by WinXP Embedded. Does anyone know the possible cause?:confused: I´m not storing any huge string, either any huge collection, etc. Sometimes this message appears with frequency, others it just happens. :wtf: Thanks.

    Visual Basic hardware performance help question

  • Is it possible to dynamically create Collections in VB6?
    S suguimoto

    Hi Thomas, Thank you very much! I declared in a module Public m_Collection() As Collection And in my form: (i needed to "Set" in order to work) Private Sub Command1_Click() For i = 0 To 13 Set m_Collection(i) = New Collection m_Collection(i).Add "1234" Next i End Sub It work perfectly :) Thanks! Best Regards!!

    Visual Basic question

  • Is it possible to dynamically create Collections in VB6?
    S suguimoto

    Hi! Thank you very much for replying! Best Regards

    Visual Basic question

  • Is it possible to dynamically create Collections in VB6?
    S suguimoto

    Hello! Does anyone know if it's possible to dynamically create Collections in VB6? I wanted to dynamically create as many Collections as the user needs/wants. Just like TextBox1(0), TextBox1(1), and so on. Is it possible? Regards

    Visual Basic question

  • How to work with Collection in VB6?
    S suguimoto

    Hi Dave! I could do it! I declared Public m_Cars As New Collection in the module :) Thank you!! :laugh: :cool:

    modified on Thursday, December 27, 2007 5:54:39 AM

    Visual Basic csharp dotnet help tutorial

  • How to work with Collection in VB6?
    S suguimoto

    Actually I'm reading from a CSV file, putting into collections (like data base). I believe that working with collections is the best way, instead of reading the CSV file everytime that the app needs to fill a listview ou delete a value. At the moment I gave up on collections, and I'm reading the csv all the time. =/ Thanks anyway :)

    Visual Basic csharp dotnet help tutorial

  • How to work with Collection in VB6?
    S suguimoto

    Hello there! I'm working with VB6 ( X| argh! I have no option) and I have a small problem, My application has 6 forms and the main form posses 7 collections. And the whole operation needs to work with those 7 collections (adding, deleting, counting and so on) in any Form. My problem is: how to make those 7 collections Public or "Global"?:confused: Ps.: I could do it in VB.Net but the current DLL's does not support .Net Framework yet. Thanks in advance. With Regards, Suguimoto

    Visual Basic csharp dotnet help tutorial

  • String (Hex) to Hex
    S suguimoto

    its must be huge. because it's simulating a memory in a "rom" inside a virtual processor. i needed a function "readmemh" from verilog, but it couldnt be translated to c++, so i did it manually. this mem is going to be read a lot of times and changed a lot of times. I think 8192 is fixed, as it was in Verilog. So i'm just gonna leave it like that Thanks!!

    C / C++ / MFC data-structures help tutorial question

  • String (Hex) to Hex
    S suguimoto

    Thanks!! It's working! I used %x to display everything as Hex, and it's working perfectly. Thank you guys very much!!! code:

    int main(int argc, char* argv[])
    {
    FILE *fp;
    fp = fopen("mem.ini", "rt");
    char str[32];
    unsigned int mem[8192];
    char * endptr;
    int teste;

    for(int i = 0; i<8192; i++){
    
    fgets(str, 32, fp);
    
    mem\[i\] = strtoul(str, &endptr, 16);
    
    printf("%x\\n\\r", mem\[i\]); // %u   to display unsigned values
    }
    

    system("PAUSE");
    return 0;
    }

    C / C++ / MFC data-structures help tutorial question

  • String (Hex) to Hex
    S suguimoto

    I changed to strtoul... and get the same result =/ also increased the size from 32 to 33, still get the same thing. very weird. But I'm still trying

    C / C++ / MFC data-structures help tutorial question

  • String (Hex) to Hex
    S suguimoto

    I aprreciate your effort to help me :D so here is the code:

    #include "stdafx.h"
    #include
    #include

    int main(int argc, char* argv[])
    {
    FILE *fp;
    fp = fopen("file.ini", "rt");
    char str[32];
    unsigned int mem[9];
    char * endptr;

    for(int i = 0; i<9; i++){
    fgets(str, 32, fp);
    
    mem\[i\] = strtol(str, &endptr, 16);
    
    printf("%i\\n\\r", mem\[i\]);
    }
    

    system("PAUSE");
    return 0;
    }

    I'm a newbie in c++ and this seems to be a little bit hard for me. my result:

    0
    0
    2147483647
    0
    0
    2147483647
    0
    2147483647
    2147483647

    2147483647(dec) is equal to 7FFFFFFF(hex) =/ whats happening? hehehe Regards

    C / C++ / MFC data-structures help tutorial question

  • String (Hex) to Hex
    S suguimoto

    Hello, I got a file (.INI) and it's filled with a lot of hexa numbers:

    00000000
    00000000
    FFFFFC24
    00000000
    00000000
    FFFFFC2C
    00000000
    FFFFFC70
    FFFFFC24

    I must convert these strings hex to real hex number, obviously they must be unsigned. I tried a lot of ways, and got only trash :(( each line must be a row in an array, for example "unsigned int myArray[200];" this array must be filled with hexa from the string (INI File). Cuold anyone help me?? Thanks

    C / C++ / MFC data-structures help tutorial question

  • Verilator
    S suguimoto

    Hi! Thanks for the reply. Actually I'm trying to make a simulation. With the current Verilog tool that I have, I can simulate, but it takes too long to simulate! In c++ it can be maybe 10x faster or 20x. The problem is... corventing the whole code into C++. I'm getting so many troubles! I really have no clue, I have fixed all the Verilator warnings, but the errors seem endless. hehehe but I cant give up, not yet :P Regards!

    Hardware & Devices c++ help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups