Search:
Type: Posts; User: C++Novice
Search:
Search took 0.03 seconds.
-
It's good to read someone who has a foot in both camps having this opinion. I've had a lot of false starts over the years, dipping my toe into vb.net but I think it's time to have another look.
...
-
We're the last of the Mohicans.
These av issues do feel a bit like a bad omen.
Wish I had a magic wand that would transport my stuff to vb.net.
Course I know next to nothing about vb.net beyond...
-
-
The output is a csv file like the mocked up one below, which i import in to an access database.
Then the depth column makes it easy to calculate a column showing the net time in each procedure...
-
MZ tools won't add errhandlers to all procedures in one go, it will just add an errorhandler to whichever procedure has the focus when you click on the toolbar icon
If you're interested here is...
-
Yes it will replace those with the actual names.
I don't know if you are familiar with MZ tools but if you aren't, you will still have to visit every existing procedure to add an errorhandler...
-
I use a class based on the CTracer class from Francesco Balena's VB6 book.
Then in MZ tools I have its errorhandler feature also add the trace code to each procedure.
For new code at least, it...
-
Thanks for information everybody.
My usage is not malicious, I am just trying to take pressure of the program process by handing off work to another exe. The program process calls it every couple of...
-
That makes sense, thanks.
Does ShellExecute have to wait also or does Windows just give it the value
for the hwnd it then goes on to use in the creation of the process?
-
Thanks LaVolpe
This looks to be just what I needed. I'm finding ShellExecute about 20 times faster than Shell.
Is that about the order of improvement to be expected I wonder?
Call...
-
-
Hi
The shell function in visual basic waits for a return value from the called program.
I have found that in some cases this can take several seconds.
Is there another way of calling that won't...
-
I'm in two minds about the idea of a new programmer starting with vb6. It's what I'm most proficient at (not saying much) but if I were starting now
I know I'd choose something else because it's...
-
This thread ain't getting any younger!
Yes just to confirm that this solution works, just had this issue, intellisense just disappeared in a sub I was writing.
The cause was declaring a parameter...
-
This rings very true for me.
I like things to be very simple
A trivial example:
'I much prefer
dim s as string
-
I only tested it on simple stuff, a small one form program (also did some database work), maybe a couple of hundred lines total and it compiled and ran.
The code didn't look too pretty afterwards, ...
-
I have written a couple of very simple programs in Lazarus just while learning a bit of object Pascal.
Lazarus is a very impressive product and if I was starting out from scratch I'd strongly...
-
This is fascinating, thanks very much. I think I'd need to do something of this sort though to get a proper feel for it.
Sorry if this is a stupid question but where does the code go on an instance...
-
This is very impressive to me. I had to look up 4 GL (4th generation languages). As far as i can understand they are like a higher-level again above what we call high level languages.
It looks like...
-
LOL, Whiskey works too well for me.
-
It's a bit of an "if all you have is a hammer..." type situation though.
If you become proficient in some other language you might find that making such a product could be done faster in that...
-
For me the most feasible rescue plan for my vb6 code seems to be a port to vb.net, maybe even c#
Once in .net (no easy task*) then if windows goes away I'm hoping that
implementations of the clr...
-
Thanks everyone. Your method looks interesting Baka but as techgnome says, I don't know enough to feel confident enough to use it.
Also is it not losing one of the advantages that vb gives us over...
-
I believe that it is a bad idea to use "End" (i could be wrong though), and that the proper way is to unload all the forms in your application as in something like the following:
Private Sub...
-
Thanks wqw, that's clever.
I am going to play with this for awhile.
Until recently I wasn't aware of how much can go wrong when using doevents and I have probably tended to use it too much.
I...
-
Hi I am back again, sorry!
Your solution works wqw but what about situations like in the slightly altered code below, where the DoEvents call is inside a nested procedure and the outer procedure...
-
Thanks wqw
That does the trick all right.
-
I would have expected clicking on the command button to end the following program but all it does is to cause the window to disappear while the process continues indefinitely.
If you wan to see it...
-
I just copied what you did and that's pretty weird all right watching a second msgbox pop up while the other is still there!
-
I made up a little project with 2 forms like Elroy has in his example.
It has trace logging built in and in the ide just prints to the debug window but in the compiled version prints to a file....
-
I think maybe it suspends everything in the IDE but it doesn't in a compiled exe.
It was some logging code, writing to a file, that showed me the timer events were still firing when a message box...
-
Thanks for the prompt response. I think I understand things better now. :)
-
I was under the illusion that if there was a message box open that no program code was executing because the program was waiting for an response from the user.
I was under the same wrong impression...
-
I downloaded and used this today and despite not being too sure what I was at, it worked!
It's really spruced things up.
Thanks very much for providing this, LaVolpe!
-
Hi
Sorry this was a bit dumb.
I fixed the problem, I wasn't setting the printer.scalemode property.
The code worked fine if the previous time this was set, somewhere else
in the program, it was...
-
Thanks very much for your prompt and detailed reply. I hadn't thought of it being the printer.
As you suggest, I will look into that first and if no joy there will try setting up some logging.:)
-
Sorry if what follows is a bit vague, I'm just looking for some suggestions about where to look because
I haven't been able to reproduce this.
Code pretty much identical to that below outputs a...
-
I know it's pretty meaningless but vb.net is above c# this month on the tiobe index. Don't think that's happened before.
143019
-
LOL, I like that
Ah OK, fair enough
Thanks Dilettante, plenty of food for thought there. I am using DoEvents a bit (maybe a lot) more often than I should be doing. I guess it's time...
-
Hi Dilettante
Thank you for your detailed answer. I think I follow what you are saying to some extent but I am afraid that my knowledge of message loops and the like isn't great.
I think I need to...
|
Click Here to Expand Forum to Full Width
|