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

Search:

Type: Posts; User: sergelac

Page 1 of 3 1 2 3

Search: Search took 0.06 seconds.

  1. Replies
    0
    Views
    1,629

    Synchronize and Queue with Parameters

    is it possible to use Synchronize and Queue with Parameters in C++ Builder XE2 ?

    this works :
    Queue(ShowModalMessage);
    but i want to use it like this :
    Queue(ShowModalMessage("message")); ...
  2. system service starting program with other account (run as)

    im making a service (local system account)
    the service must start another application.

    the application cannot use the local system account because it lock the database and other application...
  3. Replies
    5
    Views
    3,743

    Re: Access Database with C++ Builder ?

    i don't know what is MFC
  4. Replies
    5
    Views
    3,743

    Access Database with C++ Builder ?

    im new to c++, i converted all my code from VB6
    i imported MSCOMM ActiveX Control, and installed ICS7 to replace Winsock Control
    the only thing i am missing is databases.

    how can i use DAO with...
  5. Re: bitwize and give message illegal use of pointer

    i forgot to use () after timeGetTime


    z = ((timeGetTime() & 0xFFFFFFFE) / 2) & 0x7FFFFFFF;


    its working now
  6. Re: bitwize and give message illegal use of pointer

    timeGetTime is DWORD (unsigned long)
    z is int

    and im using C++ Builder 2007
  7. bitwize and give message illegal use of pointer

    im new to c++

    i search on the internet and every site say that the bitwize AND operator is "&"

    but when i try to use it, i get the error : Illegal use of pointer



    z = ((timeGetTime &...
  8. Replies
    4
    Views
    2,548

    Re: Newer files on system (ocx & dll)

    and don't use the Package and Deployment Wizard, its too old

    use Visual Studio Installer instead
    and remove the dependencies to shlwapi.dll if it's in the list
  9. Replies
    2
    Views
    21,527

    Re: crc 16 ccitt 8408

    thanks, its working



    Private Function CRC16(ByVal crc As Integer, d As Byte) As Integer
    Dim carry As Integer, i As Byte
    For i = 0 To 7
    carry = (crc And 1) Xor IIf(d And (2 ^ i), 1,...
  10. Replies
    2
    Views
    21,527

    [RESOLVED] crc 16 ccitt 8408

    i need a function to calculate the CRC16 from a string, not a byte array

    this is the function from the documentation of the device, but its in C



    word reentrant update_crc16 (word oldcrc,...
  11. Replies
    2
    Views
    1,295

    Re: how to copy field to another table (DAO)

    they do not exist in tb2,

    tb2 is the main table with all the fields except the new ones
    tb is a empty table with only the new fields

    i try changing the name of the table in current database to...
  12. Replies
    2
    Views
    1,295

    how to copy field to another table (DAO)

    i want to add new fields to a existing table in other database
    using fields from a table in the current database
    and copy all properties of the fileds like (display control, row source, limit to...
  13. Replies
    1
    Views
    752

    Re: How to write to binary file

    Put #1, , Mid(buffer, i + 1, 1)
    OR


    Open "c:\MyTest." & Text1.Text For Binary Access Write As #1
    Put #1, , buffer
    Close #1
  14. Replies
    11
    Views
    1,865

    Re: why overflow error on WinMe ?

    found a solution : no currency and no negative value





    'Private Const WAITTIME As Long = 150

    'Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
    Private Declare...
  15. Replies
    11
    Views
    1,865

    Re: why overflow error on WinMe ?

    if i change it to double, i get this error : Expression too complex
    on Win2K or WinXP

    i changed the 2 lines to this :


    zz = GetTickCount

    Loop Until (i < (WaitTime / 2)) And...
  16. Replies
    11
    Views
    1,865

    Re: why overflow error on WinMe ?

    this are the lines where i get overflow error :


    zz = GetTickCount * TC

    Loop Until (i < (WaitTime / 2)) And (((GetTickCount * TC) - zz) >= dwMilliseconds)
    no, in c++ they are unsigned long,...
  17. Replies
    11
    Views
    1,865

    why overflow error on WinMe ?

    Private Const WaitTime = 150

    Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)

    Private Declare Function GetTickCount Lib "winmm.dll" Alias "timeGetTime" () As Currency...
  18. Re: change read-only properties of dynamic controls

    thanks vb_the_best

    this is perfect, i can also have events now :)
  19. change read-only properties of dynamic controls

    how to change read-only properties of dynamic controls ?
    i get this error : Can't assign to read-only property



    ' general declarations
    Private NewTextBox(999) As TextBox
    Private...
  20. Replies
    12
    Views
    1,538

    Re: Handling Recursive Events

    Private Sub Command1_Click()
    Static busy As Boolean
    Static repeat As Integer
    If busy = False Then
    busy = True

    'Do long function here

    busy = False
    ...
  21. Replies
    11
    Views
    1,820

    Re: how to get html source with api ?

    i found the solution :

    Option Explicit

    Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String,...
  22. Replies
    11
    Views
    1,820

    how to get html source with api ?

    how to get html source of a web page with only vb and api ? (no forms or activex controls)
  23. Replies
    2
    Views
    732

    Re: need program for tv card

    VirtualDub is the best program for capturing video
    http://forums.virtualdub.org

    VirtualDub :
    http://virtualdub.sourceforge.net

    VirtualDub-MPEG2 :
    http://fcchandler.home.comcast.net/
    ...
  24. Re: how can i move two shaped forms simultanously/concurrently

    in module :


    Public Declare Function ReleaseCapture Lib "user32.dll" () As Long
    Public Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal HWND As Long, ByVal wMsg As Long,...
  25. Replies
    5
    Views
    1,400

    Re: [Tip] Create standard DLLs with VB 6.0

    i was able to make a DLL when i unchecked the "use pre-loader" option

    but when i try to use the DLL, i always get this error :

    Run-time error '53':
    File not found: test.dll


    the file is...
Results 1 to 25 of 61
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured