Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. VBGuyUsingVC

    Extract Source Code from exe file?

    You may want to search for a decompiler. There are several floating around the internet. Not all work real well. I've used a few. Reverse engineering and decompiling is however against most licensing regulations on programs that you buy.
  2. VBGuyUsingVC

    VB Math Programming

    I took on a project that I assumed would be relatively simple. But for some reason, there is a block where I cannot find a solution. I need to write a program that will create all possible combinations of a string. For example: String = ABC Combinations=ABC,ACB,BAC,BCA,CAB,CBA String = ABCD...
  3. VBGuyUsingVC

    building a discussion board using visual basic

    Could you elaborate? I assume you are writing a desktop vb app that will communicate with a central database over the internet, or are you creating a fully web based app, or am I just completely off.
  4. VBGuyUsingVC

    binary file copy?

    I would also recommend filecopy(). If you want to create a file copy routine then I would simply open the file in binary mode and do a string copy. It takes 4 bytes to represent 3 bytes in byte arrays I believe which would explain your extra byte. In fact if you try several examples of the...
  5. VBGuyUsingVC

    Search a group of string in another group of string

    I don't think I understand the question clearly. Have you tried the Instr() function provided by VB? Are you trying to parse out 05, 02, and 07 to search in the SearchIn string? Can you rephrase the question of give another example or maybe someone else will understand. Thanks
  6. VBGuyUsingVC

    The content of a variable with a name specified as a string

    I think most programmers wish you could do something like that. The closest function similar to it in VB is the CallByName function, however that will not do exactly what you want. You could create a collection of variables making the key the name of a variable. Like This: Dim col As New...
  7. VBGuyUsingVC

    is integer!?

    Small Point: I don't believe you even need the If Err.Number = 0 because the IsInteger will return FALSE by Default. The following should be okay. Public Function IsInteger(valor As String) As Boolean On Error Resume Next IsInteger = (CInt(valor) = valor) End Function That's a little...
  8. VBGuyUsingVC

    is integer!?

    The CInt function can handle only integer values. So the following could test if a number is in an integer range: If CInt(Text1.text)=CInt(Text1.Text) Then 'is integer end if The above if statement will either pass as true or generate an error. This if statment will never return false...
  9. VBGuyUsingVC

    File Associations

    Does anyone know how to get a list of the registered file formats. I want to be able to do something similar to the way Windows displays the file types. (You know, a windows comes up listing all the executable titles and associated extensions with them.) . Is this simply a painful registry...
  10. VBGuyUsingVC

    is integer!?

    The best way is: If TypeName(X) = "Integer" then 'Is Integer Else 'Not An Integer End If OR the long way Function IsInteger(valu) as Boolean On Error Goto NotAnInteger IsInteger=CInt(Valu)=CInt(Valu) Exit Function NotAnInteger: end Function
  11. VBGuyUsingVC

    Is my file in use?

    Try opening the file for lock read access using the open statement. If the open fails then the file is in use. That still involes error trapping however.
  12. VBGuyUsingVC

    Create a Bitmap

    Basically what you need to know is the file format of a .bmp file. There is no quick and dirty way that I know of where you can simple say SaveBitmap other that the SavePicture method of vb. (of course that means you would have to load the data to the control and then save it, which is not...
  13. VBGuyUsingVC

    Help with Graphical Interface like MSMoney

    Anything they can do you can do! I'm not familiar with the MSMoney interface but I know I could reproduce it. If you want to go the lazy way, search for some .ocx files that are on your computer that ship with MSMoney. You may be able to use those in your interface. Using the Shape control...
  14. VBGuyUsingVC

    click here

    No. VB only creates COM/ActiveX dlls. Try using the ClassWizzard in C++ to incorporate an ActiveX dll in the Visual C++ environment. MFC handles alot of the dirty work. There is plenty of documentation in MSDN that I have looked at in the past to incorporate an ActiveX dll in Visual C++...
  15. VBGuyUsingVC

    Need help with loading up data from thru class

    Your question is a little vague but it sounds like all you have to do is create the code to manipulate the database but put it in a class. You can create a function or property in a class of a certain database type. For example: Function StudentTable as Adodb.Recordset or property Get...
  16. VBGuyUsingVC

    A Timetable idea

    By default it should be unbound. You actually have to specify alot of database information for it to be bound. So if you did not do that, then it is already unbound. The very first row is always zero and the very first column is always zero. So if you have fixed rows then yes, they are...
  17. VBGuyUsingVC

    Use code to close a program

    As with most cases, you can find you answer with API calls. Try the DestroyWindow() api, and I believe there is an end process API. You may have to call a few other APIs to get the handle (hwnd) of a window like FindWindow() or WindowFromPoint(). There is no built in VB function to close...
  18. VBGuyUsingVC

    A Timetable idea

    What you want to do is very common and easy. The grid needs to be an unbound grid. Usually the MSFlexGrid control is a good option. You can manipulate the rows and cells, as well as the height, and add content at will. Almost any grid should have an unbound method. What type of grid are you...
  19. VBGuyUsingVC

    accessing file names from within a folder

    Are you using the VB File list box control. If so, then interface with it similar to how you would a listbox. dim X as integer,FileArray() as string,pointer as integer for x = 0 to file1.listcount-1 if file1.selected(x) then redim preserve FileArray(0 to pointer) FileArray(X) =...
  20. VBGuyUsingVC

    How do I get information from a text file to use in my program?

    You can do several things to read and write the data. You could write code yourself using the OPEN STATEMENT: Dim A as Byte, FileData as string A=FreeFile Open "myfile.ini" for input as #A Do While Eof(A) Line input #A, FileData etc.... Or you could use the FileSystemObject...

Part and Inventory Search

Back
Top