Search:

Type: Posts; User: digitalShaman

Page 1 of 13 1 2 3 4

Search: Search took 0.49 seconds.

  1. Re: SQL - manipulate group by result into one row

    try a MAX(CASE WHEN DVRFT ='RFT' AND NVRFT='RFT' THEN 0 ELSE 1 END)

    this should tell you on the group level if all records of that group have DVRFT and NVRFT equal RFT (MAX is 0) or if there is...
  2. Replies
    4
    Views
    193

    Re: Error when trying to load DLL

    yeah, looks like your export is not correct: https://docs.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-declspec-dllexport?view=msvc-160
  3. Replies
    4
    Views
    193

    Re: Error when trying to load DLL

    are you sure you export Get_Position?
    i used to do that in a .def file.
    i assume the path "C:\Users\Owner\Desktop\Test\test_dll\bin\Debug\test_dll.dll" is correct. you may want to inspect the dll...
  4. Replies
    33
    Views
    2,076

    Re: Bitcoin Mining

    it will at one point. so keep going.
    but for now, its worth to note that there had only been 5 days in history where bitcoin was worth more than today.
  5. Re: Measure the length of a string in pixels.

    reading the whole thread twice, i still dont get it.
    do you want to print (to a printer) or do you want to display it on screen or do you want to write it to a text file?
    you mentioned all these....
  6. Replies
    8
    Views
    480

    VS 2010 Re: 2 diff blob format reading error

    https://www.google.com/search?q=.net+load+jpeg2000+from+byte+stream
    first hit shows an example of how to use freeimage (which i have never done myself):

    byte[] myByte = new byte[10];...
  7. Replies
    8
    Views
    660

    Re: The perfect Hex Editor

    anyone interested in testing the product?
  8. VS 2019 Re: Do you use Decimal, single, or double?

    i usually use double. only in some cases where i know that a single precision is sufficient and memory might be an issue, i use singles. i almost never use decimal.
  9. Replies
    8
    Views
    480

    VS 2010 Re: 2 diff blob format reading error

    You need to tell us more about the format the images are stored. an image 640x480 has 307,200 pixels, an image 153x208 has 37,824 pixels. unless these images have large areas of just one single color...
  10. VS 2015 Re: Serial data loss while receiving data.

    Hello,

    i do not see any obvious flaw in your code, but it is bit overcomplicated. may i suggest the following, alot shorter approach:


    Private Sub SerialPort1_DataReceived(sender As Object, e...
  11. Replies
    3
    Views
    708

    VS 2012 Re: PGP Encryption

    two year old topic :eek:
  12. Replies
    3
    Views
    708

    VS 2012 Re: PGP Encryption

    That lib might be worth the money but it should also be possible to do the (older) RSA encryption without any additional libs. the hassle is getting the data correctly from the base64 encoded text to...
  13. Re: How to select using multiple column match?

    both ways are totaly valid. there is a syntax for update/delete using a join for selection. you can also always do something like


    DELETE FROM A WHERE ID IN (SELECT ID FROM A INNER JOIN B ON...)
  14. Re: [RESOLVED] Why can't I find this file ?

    hmm, throwing "sysnative" at google gives this as first hit: https://www.samlogic.net/articles/sysnative-folder-64-bit-windows.htm and that article explains it very well.
  15. Re: Why can't I find this file ?

    thats correct. but i do not think that running as admin will change it. as far as i know your app running as 32/64 bit makes a difference. syswow64 or sysnative should get you to the path you see in...
  16. Replies
    13
    Views
    722

    Re: Need a little help with vb2017...

    right, and the program does not know anything about the distance, so you first need to add the distance to the program somehow: shall it be entered in a textbox or hardcoded in the program? easiest...
  17. Replies
    8
    Views
    480

    VS 2010 Re: 2 diff blob format reading error

    does that mean the bytestream starts with certain bytes to indicate the picture? what are these bytes really (0000 =two bytes, FF=one byte?? seems odd)? is the size of the image also included in the...
  18. Replies
    13
    Views
    722

    Re: Need a little help with vb2017...

    The code you are using, is only a stopwatch. so there is a gap of information from a simple stopwatch to things like "First", "Second" and especially "Miles Per Hour".

    so, if the program you are...
  19. Re: Reading .bin file with HexViewer (Be.Hexbox) Converted to VB? *URGENT*

    why not using bitconverter?

    try this:

    Dim bytes() As Byte
    bytes = File.ReadAllBytes(Main.Label3.Text) ' location of the file that's going to be opened
    dim Integers() as...
  20. Re: Var access in anonymous functions

    [removed wrong assumption]
  21. Re: Var access in anonymous functions

    ok, learned that Java is doing it in the way i would have expected. not sure of my feelings about the way .net handles it. can be very beneficial but also a pitfall.
  22. [RESOLVED] Var access in anonymous functions

    can someone explain to me how access to vars in anonymous functions is handled?

    having the following:


    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim...
  23. Replies
    8
    Views
    660

    Re: The perfect Hex Editor

    update: i went with the structure library and it has currently two branches: one predefined and one user defined section. user can define new structures and/or select existing structure and add to...
  24. Replies
    8
    Views
    660

    Re: The perfect Hex Editor

    have worked alot on the PE exe file interpreter which is kind of stress test for the navigation system, its parsing the import, export and resource tables currently well and the navigation then lists...
  25. Replies
    8
    Views
    660

    Re: The perfect Hex Editor

    right passel. its already quite grown. i do have support for large files, drive/disk editing (\\.\X: and \\.\physicaldriveX), value editing of 1/2/4/8 bytes (signed/unsigned, big/little endian) as...
  26. Replies
    8
    Views
    660

    The perfect Hex Editor

    What are the killer features of a great Hex editor for you?
    (Gathering requirements ;))
  27. VS 2019 Re: Application does not run on windows server 2019

    check if a process is started in task manager. add a messagebox right at the entry point of your application to see if that gets hit.
  28. VS 2015 Re: Launch exe as another user with elevated rights

    try it like this:


    Public Sub Main()
    Try
    Dim procInfo As New ProcessStartInfo()
    procInfo.UseShellExecute = False
    procInfo.UserName = "username"...
  29. Thread: Yokogawa

    by digitalShaman
    Replies
    2
    Views
    267

    VS 2017 Re: Yokogawa

    i know the model and actually did not know that there is a TCP/IP interface. But there is! here is the spec:
    https://web-material3.yokogawa.com/IM04L02A01-17E_060.pdf
  30. Re: rows in incorrect order when inserting into SQL database

    three things to note here:
    1.) You should take the effort in your app to track if you need to delete/add/Update a record and do so. deleting all records and recreating them may work in a single user...
  31. Re: Only read unread emails, set to read and move to deleted folder in Web Services

    i don't know exchange but did some Outlook scripting many years ago. i guess the concept is similar.
    your exch.FindItems(WellKnownFolderName.Inbox, iv) will most likely get a list of all mails in...
  32. VS 2017 Re: How To Use TCP To Count The Number Of Files In Server Folder?

    so your initial question "get number of files from remote server using tcp/ip" turned more into: "get number of files from directory on remote wordpress webserver". while your first question is...
  33. Replies
    7
    Views
    569

    Re: Parameter Issues

    this rules a bad name out. race condition yes possible but as long as its only him working on the access db i doubt that inserts/updates/etc run in parallel.
    it would be good to know the error code....
  34. Re: Find value that is not included in a group of rows.

    there is just one table involved, right?

    somthing like that?


    select WebPayTN_lngPayTransNumber,max(case when WebPayLog_strStep = 'BankResponseRaw' THEN 1 ELSE 0 END) AS HasBankResponseRaw...
  35. Re: Count number of Instances of user name if another column is not null

    try removing the quotes around 'durationtime'



    SELECT username,
    COUNT('username') AS launchcount,
    SUBSTRING(SEC_TO_TIME(AVG(TIME_TO_SEC(`durationtime`))), 1, 8) AS averageduration
    FROM...
  36. Replies
    14
    Views
    580

    Re: Mouse Leave

    Hi Shaggy, one reason a MouseLeave would never fire would be if the mouse never was on the form i.e. the form startup pos was not under the mouse. maybe that gives a clue?
    however, instead of what...
  37. Re: Permissions required for executing stored procedures on SQL Server

    yes, you need to grant execute permission for your user/usergroup.
    try this sql:

    GRANT EXECUTE ON SCHEMA :: dbo TO <your user name>
  38. Re: [RESOLVED] OpenTK/OpenGL Mouse Picking not working?

    Just a comment: you are usig "old" OpenGL style. the "new" style is using vertex buffers and shader code.
    Hittesting is usually done by creating a 1x1 viewport along the "pick axis" and rendering...
  39. Re: Why is Thread.Abort not doing anything?

    you probably have not been patient enough. the message box is finally displayed when cmd.ExecuteNonQuery() returns. as the executed sql will not return for 1h, the cmd should timeout after the...
  40. Re: StringBuilder vs Concatenation

    To add some flesh to the bones and taking it out of the theoretical area: we had a poorly coded vb6 script where a string output was concatenated. the output was multiple lines with multiple fields...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width