Help With Making This(HARD! One)Icon And Exe Binder- Open To Read..
here it is
Code: 1) the code must be small( or make it as small as possable) 2) there are other things that my app does( the code youmake must be able to intergrate into it) 3) thereisnt any user interaction. 4) any thing else we'll hammer outlater 5) im loaded with $$$bills
textPath.Text = full path Ppath & Pfilename Ppath = path c:~~~ Pfilename = the exe's filename
first, i need a icon extrator, it will create an icon( the defalt icon of the exe){icons name is the exefiles name ~~ exename.ico) in the dir of the exe, the exe path is textPath.Text that icon will stay there and then it will contineue to the next line of code, wich is the exe binding. textpatha.Text<- this is the one that startsup first] is the 1st file to be binded and textPath.Text is the 2nd, and the icon of the 2 binded files exe result is that icon i talked about a few lines ago. the result of the binding is put in the windows temp dir{ + its own subfolder} as the orginal exe filename, then it will kill exename.ico, kill the orginal exe, name; copy the binded result in the wintemp dir to the path of the orignal exename, then cleanup and move on. there must be a code to see if the wintemp subfolder it makes is already there -
binding( join 2 exes togeter so they both run at the same time) _____________________ freel free to email me!
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Should I Have 100s Of Winsock Connections Open/close.. Or Keep Them Open (hard Q)?
Hello
Ive got a server to which many clients connect to.
They each are given a few tasks to complete - which may or may not take a long time to finish, and after each task is done they send back the result.
This has caused massive amounts of problems for me. Right now I keep the connections open all the time. My server listens on one particular winsock control on a particular port to which all clients connect. It then accepts the connection request thru a second array of winsocks, so each client is connected to the server via the array via one connection.
There is generally no problem sending out the tasks thru that single connection/client - but receiving is a problem. The client may need to send back a few hundred kb at a time but since it was completing several tasks at once - it is not always received correctly. My guess is because taskA is sending data thru the connection at the same time as taskB - and the data isnt received right (each task sends its data via a <start> and an <end> string so I know where the start/end of data is and when transmission is over). Its important to note that the tasks are multithreaded (via a 3rd party control)
The data is sent in one line per task. winsock.SendData theResult. But many tasks can complete at around the same time. I thought that VB would wait until the data was completely sent (for one lines code) before moving on... but I dont think this is happening. I even tried adding a DoEvents but to no avail - I still cant receive the data properly. Maybe winsock is 'skipping over' some data - I dont know. (Kinda like when if you 'break' the application winsock does not get incoming data and when you resume it still wont pick it up)
So Ive got 2 options..
1) Somehow figure out how to receive data properly when multiple tasks finish on a client at around the same time and they send data at the same time - basically making the program send the data of a task and not continue until the data has been sent, then send another tasks data.
2) Use many connections. Basically the max # of tasks running at once will be about 10. So the idea is to have another winsock array of 10, each dedicated to one task, and when a task is completed - connect thru the winsock array, send the data, and when the server receives it - it disconnects.
3) A mixture of 1 and 2 - have the 10 winsocks connect to the server and be open at the same time, then I can just send data and receive via a specific winsock array control and there is no problem distinguishing taskA from taskB from taskC on a client, or client from client.
But honestly.. I dont know if its 'bad' to have lots of connections open and close all the time. And I dont know if its 'bad' to have thousands of connections open at the same time either..
What do you guys think?
Add Icon To Menu WITHOUT Making The Icon Looking Awful?!?
how to add a pic to a menu, without making the pic darker, and partly unrecognizeable.
and why can other apps display 16x16 pics?!(word or vb itself...)
because if you resize the default pics (eg save.bmp) then you cannot recognize the save picture anymore.
alex
ps: the f*** sorting with the f*** mshflexgrid DOESN'T WORK!!!!!
Exe Binder + .ocx
hi all, i have 1 interesting question, i have downloaded exe binders before and
i am wondering when i bind exe file and activeX, how can my program call that active X from binder (new exe) if some user dont have that .ocx on HDD?
Winsock Binder
i made a email client, but it requires winsock.ocx, so if i wanted to give it someone, i would need to give the winsock.ocx
since its complicated to add the winsock to the resource, i was hoping
if there is a program that combines the app. and the winsock together
any way to do it?
thanks
Automating MS-Office Binder - Anyone Done It?
Has anyone automated Office Binder? - for example, create a binder containing multiple files (for example, Word docs!!). It would be nice to do the following in code:
Open Binder
Insert various files in it
Print Preview the final result
Print a hard copy of the final result
Save the file
If so, can you post some sample code? Gracias.
Making This Function Uninteruptable. VERY Hard Question!**RESOLVED**
Hi, I'm Kronikle, new member to this board. I'm working on an RPG video game called The Heresy Saga. I've spent roughly 5-6 months planning this and I've spent the last 2 weeks starting the basics of this (programming in all the class modules and databases). Time for question:
I have a function that will display text onto a listbox letter by letter, one letter every 20th of a second. The problem is, I also have a function where if you press Enter it clears the listbox. The only problem with that, is that if it's still displaying the message, it clears what's currently on the listbox while the function continues to add the rest of the letters of the phrase. This gets espescially annoying when events happen prematurely or when you press the enter key for more than 1/10th of a second as it will cut off the first few letters.
I couldn't really figure this out myself mainly because I didn't write this code. Someone else did this for me. So... I really can't understand where all the events start/load etc. I tried to put a True/False switch in the function, but it keeps reloading so that's sort of pointless.
The command is used like:
AddMessages "Gerard:" & "*" & "We must run!" & "*" & "They are after us!"
And it will be displayed as:
Gerard:
We must run!
They are after us!
So the basic problem: I need to be able to make this function uninteruptable until the end of the AddMessages function, then I need to be able to set off some kind of trigger that says that the function has ended.
Anyway, I would appreciate any help. I know there are a lot of pros on these forums. So if you think you can help me crack this, here's the code:
VB:
--------------------------------------------------------------------------------
Private Sub TimerProc(ByVal hwnd As Long, ByVal nIDEvent As Long, ByVal uElapse As Long, ByVal lpTimerFunc As Long)
If Len(strMessages) = 0 Then
If colMessages.Count > 0 Then
strMessages = colMessages.Item(1)
colMessages.Remove 1
lstMessages.AddItem Left(strMessages, 1)
strMessages = Right(strMessages, Len(strMessages) - 1)
Else
KillTimer frmMessages.hwnd, 0
boolTimerEn = False
End If
Else
lstMessages.List(lstMessages.ListCount - 1) = lstMessages.List(lstMessages.ListCount - 1) & Left(strMessages, 1)
strMessages = Right(strMessages, Len(strMessages) - 1)
End If
End Sub
Public Sub AddMessages(strMess As String)
Dim strMessArray() As String, intLoop As Integer
If boolTimerEn = False Then
SetTimer frmMessages.hwnd, 0, 50, AddressOf TimerProc
boolTimerEn = True
End If
'You can add multiple messages by seperating by "*"
strMessArray = Split(strMess, "*")
For intLoop = 0 To UBound(strMessArray)
colMessages.Add strMessArray(intLoop)
Next
End Sub
Public Sub InitVars(frmForm As Form, lstListBox As ListBox)
Set frmMessages = frmForm
Set lstMessages = lstListBox
End Sub
--------------------------------------------------------------------------------
If you can't really help me here, don't hesitate to ask me any question about this if you need more information such as the Enter function or something like that. Thanks guys!
One thing about this function is that AddMessages circulates so it's not as if I could add a True/False switch to see if this is done or not. The function reloads multiple times so a True/False switch would be toggled too often for it to stay a certain value.
-Kronikle
Hard Drive Read
anyone have code to get the hard drive number from a pc? i am trying to setup licensing methods. thanks
Read Hard Drive
How do you Read raw file hexadecimal on the hard disk? Please be explicit, im a newbie.
I Need Help... Very Hard Question... Please Read
ok I am trying to make a runescape stat finder and on the highscore page on runescape.com it shows a users stats... But there are displayed in a table on the webpage and It is very hard to parse that... Like after a parse this is what it shows
576,56570765,455
when I want it to display
567,565 70 764,455
I am useing the document.innertext to retreive the info But that just displays this:576,56570765,455
I NEed a way to display this 567,565 70 764,455 Buy Finding the tables
If You need more info i will answer them here... Just post
Read Port.. Hard
Is there a way to read and get the information from a port without having to actually connect to it??
-Sac
A Little Pause...hard To Explain! Plz Read
hi
As i said in my first post in this forum, i am writing a little game that consists of a word to guess. Correct letters are colored red and incorrect letters are colored yellow, and letters that don't exist in the word are left black. It's a little bit like a mastermind game, anyway...
The little app I wrote works properly except one point I can't achieve:
as the user types letters, they are put into an array of strings. Once my algo checks letter positions, before it moves to the next row for the next try, it colours the letters it checked and then shows them all at once, and here is the point: what I'd like it to do is to show the letters one by one with a little pause so that I can play different beeps for the letters.
I tried the Sleep API but it doesn't do what i want... does anyone have a tip for this ?
Map Between Points (read, It's Hard To Explain)
I'm making a program(a simulation) where I need to find a path between 2 points, but that path may not be direct (like computers over the internet). The coordinates are referenced by seperate arrays: ObjectX and ObjectY which are randomly assigned. I haven't figured out how to connect the points. I could use help on that too
Map Between Points (read, It's Hard To Explain)
I'm making a program where I need to find a route between multiple points (like hops between computers on a network). Is there a way to map out a path between two of them? They are described with x and y coordinates (in arrays). I also need a way to describe the routes.
Why The Hell Is It Doing This- READ EVEN IF IT HAS BEEN REPLIED TO... (it's Hard?)
Okay, I've been struggling with this forever, and I have no idea why it does this. Here's the problem, short and sweet. I'm filling a treeview with system hWnd's, and every node's key is "H" & hWnd (hence "H1000" as an example with handle 1000).
Now... as the code runs through and gets a new hwnd, it adds it to the treeview like so, and also stores the hwnd to an array called HList, which also holds the hWnd, the ParentHWnd, and other information. Each node's tag is entered as the array index, so they relate.
Here's the problem. After the treeview is filled with all the hWnd's, I want to sort them into their corresponding parents. For this, I use HList and make each node with the corresponding hWnd be set as the child as it's corresponding ParentHWnd. Should work, shouldn't it? Well, yes, it does, atleast not compiled. As soon as I compile it everything gets sorted wrong. From what I can tell, it looks like the parent hwnds that have NO parent (ie ParentHwnd = 0), are somehow made the children of their direct Child... I'm so lost. If anyone has even the slightest idea why the hell it does this, please, respond.
Also, for some reason, "If Treeview1.Node(SomeNodeIndexThatDoesntExist) Is Nothing Then" returns and error. I thought this worked?
Subject Hard To Explain, Come In And Read About It.
Bare (or is it bear like the big furry things) with me here.
If I save a text file, what are the smallest units that make up that text file? (Or any other file for that matter.) Is it 0s and 1s? If so I guess it would be bits, right?
Is it just 1s and 0s though, or do different characters in a different number system (or ascii) characters make up certain combinations of 1s and 0s. I really would appreciate someone explaining this to me clearly.
But why do I ask?
Well, and I think this is not right, but let's say...
File x.txt is made up of numbers in base 8 (octal) like this-
3343472
If I made a program that makes certain combinations equal a single character in base 16 (hex), thereby making two or three characters equal one character like so-
D = 33
A = 47
D43A2
would it be possible to use this as a compression utility?
If this worked would it be possible to go even further and use all the ascii characters?
Can you get data from a file bit by bit or byte by byte (question is can you get it)?
This was just a thought and it seems like it could make sense, but then again I could be wrong.
Tracking When The Hard Drive Is Being Read/writen Too?
Ok here is the deal I bought new computers but they do not have the littl blinking light that tells me that the hard drive is being accessed. I would like to know if there is a windows object that VB can tap into that will notifie a routine when the Hard drive is being read/writen to.
Thanks for any help
Open File On Hard Drive
Hi,
I'm new to VB, i want to know if this can be done. From the net using Visual Basic, can i open a file on the C Drive and insert predefined data into it or modify existing data?
Thanks.
Making An Icon
Hello, I'd like to make an icon file I can use for my program. Are there any good programs out there that will help me make them? Possibly free
Thank you,
Harb
Making An Icon
Hello all,
I want to make an icon for my program title bars and shortcut. What graphics programs do you guys use to create those .ico files?
thanks so much.
Making An Icon
Hey, I want to make an icon for my program..and i think it has to be a .ico Correct? If so, how do i make a .ico picture..like what program do i use to make it and stuff?
Icon Making
Hi, i would like to make an app that can change another .exe's icon. It could load icons from other exe's also. Is this possible? is there any ocx or bas files? Thanks.
WMI Read Open Mode Column In Open File From MMC
Hi,
I have a requirement to capture whether the user is reading a file or modifying a file in a network share.
I have used resource.path and resource.user to get "Open File" column and "Accessed By" Column under Open Files in Shared Folder of MMC, that details what share is accessed and who accessed it.
Is there a way to capture, what the user is doing whether he is reading or writing to a file. This information is captured under "Open Mode" column in Open Files option.
Can anyone guide me how I can extract this infomation.
Thanks
Suresh
Really Hard Question {open Word Document From VB}
Hello, i was wondering if anyone had some good sorce code, or new a few good functions that could open a saved word document from within a visual basic program... ie --> the user clicks a button, and help.doc opens... ive had some ideas with shell and create commands, but im stumped...
Best Icon MAKING Software??
I've searched the web, and literally THOUSANDS of programs out there
I've seen a few snag type programs which extract .ico's from existing programs...
I'm looking for something that will take a .bmp or a .jpg and convert it to a .ico
Just hoping someone here has found something like this that is a great utility.
Making A Title Bar Icon..?..
Thanks in advance guys! I would like to draw my own little title bar icon for one of my applications. I would also like that same drawing to be the desktop icon for that application. Paint? What do we do here?
jon
Making An IDE Usercontrol Icon...
Oh dear, no sooner made an expert than I'm asking questions again...... oh well, no matter.
Real simple question, is it possible to make an icon for my user controls to show up on the controls list in the IDE, to replace that silly generic usercontrol icon, because when I make an OCX with a number of ucontrols in it, the icons all look the same. And if it is possible, how?
Cheers [img]images/icons/wink.gif[/img]
Icon Making Question
How do you change a JPEG, Bitmap, GIF, or TIFF into an Icon file that can be used on a form. I tried changing the .bmp to .ico. It seemed to work (it changed the file into an icon) but it isn't usable on any of my VB forms (I get an error saying incorrect use of a property).
Making An Icon Editor
i would like to create an icon editor in vb but im unsure as the best way to go about it
i would like a main window, with a grid like structure, each "box" in the grid representing a pixel of the icon, and a smaller window which shows a preview of the icon your making
the icon size must be variable (i.e. i can make icons of size 16x16 and 32x32 pixels and the program will cope accordingly)
so far the only options i can think of are creating a huge mass of command buttons (or picwins), making them size 1 so each button would represent a pixel, but that seems a waste
the other option that my friend thought of was to have one picture window, and some functions which would figure out where the mouse was on the window and colour the square on the window accordingly, but i havent the faintest idea how to do this, or if its possible
if anybody could post any suggestions on how to go about this etc itd be MUCH appreciated, thankyou!!
Making Icon Image?
Hmmm, how do you change the icon on the top left of the application?
Also how do i change the icon of the .exe file ..... thanks.
Major Newbie here .
Making Icon Editor
hey all... i have made a program similar to paint and i want to know how to make an icon editor and creator... maybe even an ani creator. so ... i have my form and now i dont know how most ppl make the little boxes that represent pixles... how would i do that for starters?
thanks all... ne i deas for the prog would be nice 2
Please Help.. My Program I Worked So Hard On Wont Open In School..
I worked forever on a simple program at home - just one form. i saved all the files (vbp,vbw and frm file) and sent it to me thru email so i can open it at school. well, i downloaded all the files, put them in the same directory but it wouldnt open
then i tried to just open the form (because thats all the program is - one form) and when it was isnerted into the program, it got inserted as a module for some reason and not a form.. its icon was a form one, and other forms for other programs were opening fine, but this one wasnt. it kept adding itself as a module
when i looked at the source, i saw it had something like "VERSION 5#" while the forms i made at school were "VERSION 5.00". so, i thought i could simply replace # iwth .00, but that didnt work.. ALL sorts of errors occured.
does anyone know why this is happening and how i can open it at school?
I think it can be because im using SP5 at home and i think im using the original in school.. is there any way i can open my form at school? need to ahnd it in =(
Open Text File Into Datagrid - Not Hard Coded
Back in 2002 Zbigniew Borysiuk posted some code on VBCode.com that imported a text file into a datagrid using textstream (see Link to his source code ). This works rather well, but the location of the text file to be opened is 'hard coded' (strPath = App.Path & "Grid.txt" - see below). However, I want people to be able to select the location and file name to be opened. I tried using the commondialog "open" command but couldn't get that to work in the slightest and then I created a text box which lists the path and filename that the user selects (using the Drive1, Dir1, File1 method), but can't seem to find a way of using them with the code either. I'd be very grateful if anyone could point me in the right direction. I'm using VB6 and a text file as the import (I tried using a table in an access database but people then wouldn't be able to save the table as different names in different places on their hard drive - I'm making some stats software and will eventually need the columns in the grid to be summed, divide one column sum by another, etc etc).
Anyway, Here are the troublesome code snippets:
Private Sub Form_Load()
'create rs and bind grid to it
If CreateRs(OpenFile(conRead)) Then
Set DataGrid1.DataSource = rs
'count the records
NumRec
Else
MsgBox "Application cannot create a recordset."
End If
End Sub
Private Function OpenFile(X As String) As TextStream
Dim fso As New FileSystemObject
Dim fil As File
Dim ts As TextStream
Dim s As String
Dim strPath As String
Dim Location As String
'get a path
' this is the bit I need to correct - changing App.Path to anything else breaks the code
strPath = App.Path & "data.txt"
lblFile.Text = strPath
'open the file
Set fil = fso.GetFile(strPath)
Set ts = fil.OpenAsTextStream(X)
Set OpenFile = ts
End Function
Even a pointer on the web would be useful,
Many thanks,
Grant
I am logged in, therefore I am.
Open IE, Open URL, And Read Value From Page Into Excel Using VBA
I have figured out how to activate IE, open an URL, but I need to pull a particular value from the page. Here is the web page I'm accessing followed by the code I am using. I need the "CURRENT FLOW" value which is about 3/4 the way down the web page on the left side.
http://waterdata.usgs.gov/mt/nwis/uv/?site_no=06191500&PARAmeter_cd=00060,00065,00010
Private Sub CommandButton1_Click()
Dim ie As Object
Dim result As Integer
Dim myRow As Integer, myCol As Integer
Dim myURL As String
'
' Get activecell value, must be a valid
' web address
'
myRow = ActiveCell.Row
myCol = ActiveCell.Column
myURL = ActiveSheet.Cells(myRow, myCol)
'
' Set up the Automation object
'
Set ie = CreateObject("InternetExplorer.Application")
'
' Navigate to a page and customize the browser window
'
ie.Navigate _
"http://waterdata.usgs.gov/mt/nwis/uv/?site_no=06191500&PARAmeter_cd=00060,00065,00010"
ie.Toolbar = True ' }set these to true if you want to have the
ie.StatusBar = True ' }toolbar, statusbar and menu visible
ie.MenuBar = True ' }
'
' keep itself busy while the page loads
'
Do While ie.Busy
Do While ie.Busy
DoEvents
Loop
Loop
'
' Display page info
'
result = MsgBox( _
"Current URL: " & ie.LocationURL & vbCrLf & _
"Current Title: " & ie.LocationName & vbCrLf & _
"Document type: " & ie.Type & vbCrLf & vbCrLf & _
"Would you like to view this document?", _
vbYesNo + vbQuestion)
If result = vbYes Then
'
' If Yes, make browser visible
'
ie.Visible = True
Else
'
' If no, quit
'
ie.Quit
End If
Set ie = Nothing
End Sub
Making A System Tray Icon
I saw it done once, about a year and a half ago, but I kinda forgot how to do it. Basically, I want to make a program that will not be seen in the taskbar (like what you see below, a little box that says Extreme VB - Make a...), but to be placed down with the system tray (that holds the time/date, etc.).
So, any direction that I can be pointed out to would be apprishiated. I need to place the icon in the tray as well as remove the application from the taskbar.
Thanks,
Sort
Making Taskbar Icon Blink
I am building a personal chat server, and can't for the life of me come up with a way to make a taskbar icon blink, like AIM's. Could anyone give me a hand on this?
Making The Mouse Icon Invisible!
Use the ShowCursor API.
Code:
Option Explicit
Private Declare Function ShowCursor Lib "user32" (ByVal bShow As Long) As Long
Private Sub HideCursor(Optional ByVal bHidden As Boolean = True)
Call ShowCursor(Not bHidden)
End Sub
Usage:
To hide the cursor, use:
Call HideCursor
Or:
Call HideCursor(True)
To show the cursor, use:
Call HideCursor(False)
Note: If you hide the cursor "twice" or more, you will to show it "twice" or more until it appears, and vice versa.
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879
Making An Icon Follow Mouse
im making a game that a want to be a shooter but i cant get the icon to follow the mouse when i move it how would i do that?
Edited by - Split on 12/3/2005 3:00:03 PM
Making SysTray Icon Stay Always Visible?
I making a small app that runs primarily from the systray and responds mostly by the user clicking on the systray icon. I know that if right click on the taskbar, you can go to Properties > Customize... and change which icons always show/never show/only hide when inactive.
I was wondering if it is possible to modify that data myself and make my program always show by default instead of show when inactive. Does anyone have any idea how I would go about this? Thanks.
Making Icon-shadows Like The Xp Style Does<RESOLVED>
I made a container control that has a rollover button that changes both the border and the icon when the cursor is over it. It looked cool enough that I decided to make my own button control that would work the same with any icon added.
In xp the icon shifts up and to the left and shows a shadow when the cursor is over it. Just wondering what the best way to duplicate this would be. I think I have figured out how to work the apis to overlay a shadow with the standard icon. Does anybody know how they do this in xp? I could either create a temp icon with the shadow each time, or I could create and save several copies when the program loads...one for disabled state, one for pressed, and one for mouse-over, then just show the right one at the right time.
I am new to this graphic stuff so any ideas will be most appreciated!
God Bless America
Edited by - IDontKnow on 2/3/2004 11:51:23 AM
Making .exe That....please Read
Hello again. I was wondering is it possible to code an .exe file that will copy an application/program to a directory but the program itself is contained within the .exe program?
Thanks for any input.
|