LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso

Well thats different, in what way is it not working? what function definition do you have? Do you get errors?

LizR 171 Posting Virtuoso

Do remember not all of us are in your timezone, and do have to sleep from time to time..

OK, looking at the code the first thing to do would be to check your winsock data arrival procedure is actually being called, and if so, what data you get.

Data doesnt always arrive as 1 chunk, which doesnt seem tobe accounted for in that proceedure overly well. In that the data could be split over a packet.

As long as the routine is being called you'll be able to track down why its not working - why you're moving to a language (eg vb for win32) which was dropped by MS.. im unsure, but, its your call.

You'll need to tell us if the data is returning the way you'd expect it to.

The other thing would be you've told the code to run in the onload not a button press so it snot goign to run on demand.

LizR 171 Posting Virtuoso

You can just link to a copy of outlook and read data if thats what you need - there are a ton of examples on the net for it.

If you add Outlook as a using you can access all the things you could ever want from a mailbox

LizR 171 Posting Virtuoso

Depends a lot on what the firewall blocks - and wether you can get ports opened etc.

LizR 171 Posting Virtuoso

So, without my eyes burning holes, what difference do you get?

LizR 171 Posting Virtuoso

I guess file->new->dll wizard was too obvious

LizR 171 Posting Virtuoso

If you dont thread the app, you will end up with users killing the app out of frustration with the whole "Application not responding" if they toggle away or try and move it etc.

So, arguably, *any* process that could under even some bizarre circumstance take more than a second or so probably should be candidate for threading.

With this in mind, i have some questions:

a) looking at your tree, you could possibly break the query into a number, and run them simultanously
b) is your query efficient

LizR 171 Posting Virtuoso

Depending on the file, if you're downloading something to display specifically such as text, sure, otherwise if you need to pass it to an app such as zip files, word docs etc, you cant, the best you can do is temp files..

LizR 171 Posting Virtuoso

Hmm, something is, is it only if you open a specific project, or even if you do new project?

LizR 171 Posting Virtuoso

thats because you made a console application. You need to make a windows library.

LizR 171 Posting Virtuoso

Is RPC Mean service?
Yes there is firewall in thata server,cant stop that,they will kill me if i do that.

RPC is a service - you need to be sure its running on the receiving server

second, if theres a firewall and you cant stop it, then theres a big chance you cant do what you are trying to do.

LizR 171 Posting Virtuoso

You may want to put the machine name in with the username so it reads

server01\Administratr
passwordxyz

but you didnt confirm rpc is actually running - oh and is there any chance thers a firewall? (eg windows etc)

LizR 171 Posting Virtuoso

Is RPC running on the remote machine
What code do you have?

LizR 171 Posting Virtuoso

Always, bit that concerns me is the spec for the vm :P it says it needs 75gb of disk space!! what the heck.. I mean.. i run Vms all the time, mostly mine are 10gb! My work laptop only has a 70gb disk in it in the first place..

Also frustrating it comes in a vm is the fact is its preinstalled.. no choice of options.

oh well.

LizR 171 Posting Virtuoso

again, that wasnt the question I asked.

I asked you what the value of numbers is..

LizR 171 Posting Virtuoso

and when it crashes whats the value of numbers?

LizR 171 Posting Virtuoso

That hasnt answered the question, what exactly do you have the issue with?

LizR 171 Posting Virtuoso

I dsiagree, I would expect what you gave it, because you've overriden it, and it still conforms to the interface, but the class itself is still there!

LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso

Sure, google has all the answers

LizR 171 Posting Virtuoso

Depends on your level of coding, the fact you have nothing means you're gonna be late handing your code in

console or windows forms?

either way you probably need a menu to say, add, edit, view, delete, search..

you need to decide what data you want to enter, make a structure or class that will hold it

you need to decide then which method you are going to use to store your data

You then need to work out wether you're going to load all the data into memory and work with it there, or work with it direct on the disk.

design your view/edit/input form

You then write your read/write functions to disk

and debug it.

And it would be highly frowned on if someone wrote that for you - read the stickies.

Its YOUR home work, no money should get you your home work done, part of the learning is also managing your time.

LizR 171 Posting Virtuoso

OK, so, what bit exactly are you having issues with?

LizR 171 Posting Virtuoso

ok, well you have some loops and so on thats good but the data you've shown in your file is 2d, how do you tell which dimension each part you read is to be placed in?

LizR 171 Posting Virtuoso

bpl is the extension at the end, much myfile.txt is .txt at the end, somewhere thers a *rtl.bpl file

LizR 171 Posting Virtuoso

Ok, I assume you understand some of it, as you wrote it, what part dont you understand, we can try and explain

LizR 171 Posting Virtuoso

You should be changing the version in the compile, not at runtime. Versions are read only at runtime.

LizR 171 Posting Virtuoso

But that uses port 9000 not 8000..

LizR 171 Posting Virtuoso

Ok, so search in google for asp.net tutorials. When you have a specific question people will be more able to help you

LizR 171 Posting Virtuoso

way to dredge up a 3 yr old post.

LizR 171 Posting Virtuoso

Google is your friend.

Search for free c# ebooks, tutorials, read the beginning of them, one will feel more right than the rest, go through that.

You havent said what you're trying to achieve other than c#..

LizR 171 Posting Virtuoso

There are a lot of places to read on c# including microsoft who include examples with most of the methods in c#..

What are you trying to make and what problem are you having?

LizR 171 Posting Virtuoso

Hurray! Dont forget to mark your thread as solved

LizR 171 Posting Virtuoso

put it in the array not the edit text box... like you wanted..

LizR 171 Posting Virtuoso

As you will have read the notices at the top of the forum we wont dish out code, however have you checked with google?

LizR 171 Posting Virtuoso

correction that removes dev version not run time, you need to look for the rtl one thats in there.

LizR 171 Posting Virtuoso

no that removes the run time..

Under default options - eg with no project open look at the packages.. one of them will either list the file specifically or look through the filenames to find it.

LizR 171 Posting Virtuoso

Thats why we coders invented a progress called debugging.. watch what it does step by step you'll find it then.

LizR 171 Posting Virtuoso

Drawing the screens and adding simple code will be almost the same as c++

Do your code as much as you can, fix any syntax errors it whines of, then you'll probably have finished.

LizR 171 Posting Virtuoso

Your min function still tests if the numbers are BIGGER than the ones you have.. You also probably would want to start at a high number and work down as 0 would always be the lowest number..

LizR 171 Posting Virtuoso

Id go with a bit of stupid but not a lot..

You still kept it as a string with ' marks, and the c:\ bit and so on..

if you want filename in the box, just use the edit2.text..

If you want to force other things.. that you need to think of, such as what if someone put

NUL in there
or
CON:
or just \

both of which are reserved
and the file wont be written the way you think.

LizR 171 Posting Virtuoso

Because you dont check Process32First, if there is none.. that will be fase and you could save yourself a lot of effort with changing the name of your variable to mean still looking.. so its

finding := Process32First..
while finding do
begin
 if match 
   then ..
 else
    finding = process32Next...
end;
espSquall commented: Very useful and quick response +1
LizR 171 Posting Virtuoso

Just as you've shown how to write the contents of edit1, change the string you have in your assign file to be the edit 2..

LizR 171 Posting Virtuoso

Hmm sounds like its added the wrong library to the project thinking its a design package.. thats very clearly a runtime one. Remove it from the defaults. (just uncheck it)

LizR 171 Posting Virtuoso

Its always easier to spot a mistake in someone elses work.

As a kid my parents used to get so frustrated with me, Id write stuff but Im dyslexic and my brain thinks a lot faster than it writes, As as a result Id read what my brain meant to write, not what was on the paper, and Id miss out huge chunks and not see it!

At least if it crashes you should have a good idea why :)

LizR 171 Posting Virtuoso

Pretty much .. as long as you're just displaying

LizR 171 Posting Virtuoso

and in vb 6? (something I dont have installed as I wouldnt use it by choice)

LizR 171 Posting Virtuoso

It hangs coz you told it to

for (int i = 0; i < 1000; )
                {
                    if (lotteryNumbers[i,0] == randomNumber)
                        lotteryNumbers[i,1]++;
                }

Look carefully at your loop

schmidty169 commented: Dead acurate +3
LizR 171 Posting Virtuoso

hmm, it should as the encode64 function has a standard expectation.

Is the result even remotely similar?

LizR 171 Posting Virtuoso

Dont re-invent the wheel. Download the function done by someone else

http://www.vbforums.com/showthread.php?t=379072