CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: juanpast

Page 1 of 5 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    126

    Looking for chars in string.

    Hi gurus.

    I'm looking for a algorithm to search portions of string that have the same caracter. The only possible values are: a,n and g

    Char index: 0 1 2 3 4 5 6 7 8 9 RESULT...
  2. Track points 2D. Split and generalize polylines.

    Hi gurus.

    I'm working with track points. I need separate the original track in parts that are not duplicate. I'm looking for algorithm to solve examples like these:

    Example 1: if target is...
  3. Replies
    1
    Views
    501

    [RESOLVED] ADO compatibility

    Hi gurus.

    I’m having a trouble with ADO. I have this code (below), it works fine in a developer machine (Windows 7 and Visual studio 10) but compiled program not works under Windows Server 2003...
  4. Re: Multiple-readers, single-writer synchronization lock between processes

    Are you tryed to use TryEnterCriticalSection unless EnterCriticalSection?

    I not read all post of the thread, I not have so time... sorry if this way are explored before...

    Best regards.
  5. Replies
    20
    Views
    853

    Re: UTF8 Conversion problem

    Hi.

    If you stop the debugger in "WriteToFile("Test.txt", wText);": is correct the value of wText?
  6. Re: Reading and Writing serial ports simultaneously using threads

    You can use Mutex, Semaphore or you can use MSMQ to write data with thread 2 and check the queue with thread 1.

    Best regards.
  7. Replies
    0
    Views
    427

    ADO Trouble. W2008 R2 Enterprise

    Hi gurus.

    There are a reported error with ADO:

    http://support.microsoft.com/kb/2517589/en-us

    Method 2 to become a solution is:
  8. Re: polymorphic sort, overloading operator >

    Thanks.

    Your notes are very appreciated and useful.




    Good!
  9. [RESOLVED] polymorfic sort, overloading operator >

    Hi gurus.

    I need to create a class witch it's operator > are polymorfical.

    This is the code of .h file:




    #define CRITERIO_ORDENACION(Fn,a,b,c,d,e) UCHAR (* Fn[5])(const...
  10. Re: Displaying a bitmap from memory to a Dialog or CStatic

    Hi.

    You must get the CDC in the OnPaint function and draw the image.

    Best regards.
  11. Replies
    3
    Views
    861

    Re: generate statistical graphics Visual C++

    Hi.

    http://www.codeproject.com/Articles/4343/Using-the-MS-Chart-control-in-VC

    http://www.codeproject.com/Articles/425/A-2D-data-visualisation-class

    You can look for more type of graphics.
    ...
  12. Replies
    2
    Views
    392

    Re: rand_s

    Thanks.

    This is the code:



    inline int Aleatorio(int nMin, int nMax) {
    UINT nNumero = 0;
    rand_s(&nNumero);
    UINT n_s = nMin + nNumero % (nMax + 1 - nMin);
  13. Replies
    7
    Views
    482

    Re: Critical section

    No, access violation as i want.

    As you suggest I change the code, now is that:



    void WINAPI fxCriticalSection(void) {
    while (TryEnterCriticalSection(&CriticalSection_Cadena) == 0) { ...
  14. Replies
    2
    Views
    392

    [RESOLVED] rand_s

    From MSDN: http://msdn.microsoft.com/en-us/library/sxtz2fa8(v=vs.80).aspx



    int main( void )
    {
    int i;
    unsigned int number;
    double max = 100.0;
    ...
  15. Replies
    7
    Views
    482

    Re: Critical section

    I created few threads. Now I create 500 threads and the program crass.

    I change the code and use the Critical Section. This is my code now:



    #define NTHREADS 500
    #define MAXCADENA 10...
  16. Replies
    7
    Views
    482

    [RESOLVED] Critical section

    Hi again.

    Now I'm trying to write a example of critical sections but it's not work. why?

    NOTE: main function only call Inicio function.



    #define NTHREADS 500
    #define MAXCADENA 10
  17. Replies
    2
    Views
    280

    [Solved]Re: srand

    Thanks!!
  18. Replies
    2
    Views
    280

    [RESOLVED] srand

    I'am thinking about synchronization and I begin with this code with the purpose to change it latter to insert a semaphore for example but this code not work fine... I think the trouble is with the...
  19. Replies
    2
    Views
    246

    Re: Reading Text file from Internet

    Hi.

    You can use CHttpFile

    http://msdn.microsoft.com/en-us/library/0tw8chfe%28v=vs.80%29.aspx

    Best regards.
  20. Replies
    4
    Views
    1,497

    Re: MapViewOfFile trouble

    Very thanks Victor.

    I am doing examples with the same data and with fread works fine but mapping the file not work. It's need to take the same memory. For example:



    void CargaGrafos(void)...
  21. Replies
    4
    Views
    1,497

    Re: MapViewOfFile trouble

    Hi Victor and thanks for your reply.

    Two methods load the same data but mapping files crashes and using fread not.

    NODO and ADYACENTE are a struct not a class, is necesary use new operator?
    ...
  22. Replies
    4
    Views
    1,497

    MapViewOfFile trouble

    Hi.
    I have a class that load binary file. It has two methods for load the content of files: fread and mapping the file.
    For read content of file with fread:


    DWORD...
  23. Replies
    2
    Views
    1,645

    Slow CListCtrl

    Hi.

    I need to put in a CListCtrl about 300.000 items but it is very slow.

    There are some way to work properly with this number of items?

    Now I am working in a loop as follow:

    1.- Read...
  24. Replies
    3
    Views
    721

    Re: Fast way to display large images

    Hi!

    Perhaps the ask is not very clear...


    Step 1.- Read BMP file:
    IN .H FILE:


    class CTrasformaDlg : public CDialog
  25. Re: Can CFileDialog (FALSE) detect an existing file?

    Other way: use


    BOOL PathFileExists(
    LPCTSTR pszPath
    );

    to know if the file exists.

    Regards!
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width