LizR 171 Posting Virtuoso

You have a lot of operators you can use

<
<=
==
>=
!=

(see helpfile for more and info if you havent a clue what they mean)

LizR 171 Posting Virtuoso

What have you read about webservices? Have you looked on msdn?

LizR 171 Posting Virtuoso

Yes. Everything is possible. However, thread jacking is considered bad manners.

LizR 171 Posting Virtuoso

no, it will look for both and as as long as it finds a precompiled dcu with the same timestamp, it will assume its correct.

Does a hello world work?

LizR 171 Posting Virtuoso

WM_COPYDATA only works if the receiver knows what to do with it. You are limited by what your OCX will understand. Best thing to do would be to post on their forums to find out what options you have.

LizR 171 Posting Virtuoso

Whats in your projects path satements? Does a simple hello world program work?

um, .c and .h files maybe, but the code you showed was pascal.

LizR 171 Posting Virtuoso

If your component only takes file input, then thats what you've got to work with. If you just need to display images, why use an OCX in the first place?

LizR 171 Posting Virtuoso

You didnt really explain what you expect to store your images in. However, if you use a database, you could write temp files out to load into the source.

LizR 171 Posting Virtuoso

Take a look at the indy components, they are the easiest to use. (and there are plenty of examples)

LizR 171 Posting Virtuoso

If you do the correct grouping on your data you dont need a before and after.

LizR 171 Posting Virtuoso

If you want to download an MDB file you cant update it online, it would be read only as you would have to download a copy and then use it from a temp/semi perminant location.

Take a look at the indy components, they are the easiest to use.

LizR 171 Posting Virtuoso

OK, but write me the code I asked, and then see if the bell tolls and you work out whats missing. as you're close, but without any array concept no its not going to.

LizR 171 Posting Virtuoso

You have no array in your program - however, your use of random is ok. So, Id argue a difference about using arrays as it seems to be this you're having the issue with.

OK, take it back a stage, how would you assign the numbers 1 through 10 to an array holding 10 integers?

LizR 171 Posting Virtuoso

OK, so it calls buy and sets a string variable, when you say theres more than one.. This description isnt clear..

That looks on face value an awful lot of repeated unnecessary code.
Can you do a picture of what your screen should look like?

LizR 171 Posting Virtuoso

It would normally need excel to have the drivers for excel.

LizR 171 Posting Virtuoso

Did you enable adding records in your datagridview, and if you're manually adding them have you tried adding them to the datasource?

LizR 171 Posting Virtuoso

As it says, dataadapters DONT show on the controls list. nor do they show on the components list (components do show some of the non visible elements)

The obvious way would be to either name your dataadapters or, make an array/List of them so you can walk them if you make some on the fly.

LizR 171 Posting Virtuoso

Did you try what I suggested?

LizR 171 Posting Virtuoso

What problem are you having doing so?

LizR 171 Posting Virtuoso

You can walk through a library looking for classes that descend from something, and then instantiate those.

CommandTemplate newcmd;
            Console.Write("Loading commands");
            Assembly a = null;
            AssemblyName n = new AssemblyName("mycmds");
            a = Assembly.Load(n);
            foreach (Type t in a.GetTypes())
            {

                if (t.BaseType.Name == "CommandTemplate")
                {
                    newcmd = (CommandTemplate)Activator.CreateInstance(t);

                }
            }
            Console.WriteLine(" Done");
obscured47 commented: Excellent :) +2
LizR 171 Posting Virtuoso

I guess you didnt understand my last post. Yes, just not vb.

LizR 171 Posting Virtuoso

Try posting in the vb forum then, as ive used DLLs in other languages but not vb 6 and before.

LizR 171 Posting Virtuoso

Do a google for filemon - used to be made by sysinternals - MS took over it, monitor what files its trying to read and whats being blocked.. It maybe as simple as its read only

LizR 171 Posting Virtuoso

Please google for pascals triangle.

LizR 171 Posting Virtuoso

Please mark the thread as solved

LizR 171 Posting Virtuoso

You could always have a boolean flag which you use to show the different pictures ..

LizR 171 Posting Virtuoso

how would you split it then?/xorl

I already said how Id split it - I just wouldnt have made it so it was a physical string of \r\n, but the escape characters.

LizR 171 Posting Virtuoso

Why do all your questions sound like exam questions - that and you never comment on anything anyone writes to you.

An application exception is something you generate such as You dont have permission to do that, a system exception is something the OS generates - eg file not found

LizR 171 Posting Virtuoso

Hmmmm i did a split like this

string []titles = readpls.split(new string[]{@"\", @"\r\n"},

[snip]

Hmmmm i did a split like this
[0] "#extm3u\r\n#extinf:4779,addictive djs - crush on hardcore 3\r\n" //remove with indexof?
[1] "Streamripper"
[2] "addictive djs - crush on hardcore 3.mp3\r\n#extinf:312,al storm and the acolyte ft lisa abbott - falling through (alistair storm remix)\r\n"

Well I guess thats what happens when you tell it to take as litteral the escape characters you were trying to split at..

sigh

LizR 171 Posting Virtuoso

Well if you did an initial split on \\ and \r\n, you would have a bunch of stuff and then parts of which would be

#extinf:nnnnn,

so you could find the , and remove upto it, and its your title, or, if it ends in .mp3 its your filename..

LizR 171 Posting Virtuoso

Does it only see fullname?

LizR 171 Posting Virtuoso

Have you bothered this time to read the helpfile ?? or is this the same as all your other posts?

LizR 171 Posting Virtuoso

:)

LizR 171 Posting Virtuoso

I hadnt checked the if (a=b) thing, I did however assume that would work like c/c++ would, my bad. :P

I fell fowl of the ignored the return value of a function when I was using the string replace function, quickly hacking some code together for something and forgot to assign the changed string back to itself..

I am surprised on its pickiest warning level it doesnt mention that you didnt use the returned value, perhaps you should suggest it for VS2010 which is in beta..

At the same time, I cant help but wonder then how many times we all use some function and ignore its return code... and how many warnings it would generate if it did actually warn us..

ddanbe commented: Thanks for the help +2
LizR 171 Posting Virtuoso

try using (local) instead of . as your server name

LizR 171 Posting Virtuoso

ok, so it was a console application - and no that doesnt have a handle, all forms in a windows application have a handle.

LizR 171 Posting Virtuoso

Perhaps what you expected is different to normal win32 operation - sounds like you're thinking .net

LizR 171 Posting Virtuoso
LizR 171 Posting Virtuoso

that and you already asked this you act like a spammer

http://www.daniweb.com/forums/thread156668.html

LizR 171 Posting Virtuoso

You could recompile your program against the new version.

LizR 171 Posting Virtuoso

google is your friend.


Check httpwebresponse and httpwebrequest

LizR 171 Posting Virtuoso

Oh - you didnt know that?

LizR 171 Posting Virtuoso

Which is what I already suggested Antenka

LizR 171 Posting Virtuoso

OK

The code you posted is partly confusing in regards to where your code appears to be - however, looking past that,

If you had made a class, you could have an array of that class, it would then hold the id, name and 2 results. rather than separate arrays for each.

As for your how to use the listbox, press F1 - when in doubt. It has examples. You're kind right but again if you did 1 class you could easily handle the what is displayed as your item.

How to use arrays is also well defined in your helpfile - but it looks like you have a start.

LizR 171 Posting Virtuoso

Your classes arent public - so you cant see them

LizR 171 Posting Virtuoso

I believe so, its not something I gave much consideration to, Although I do know for example youc ould argue that one of the things in C was that you could do things such as

if (a = b) { .. }

which worked if a got set to b and is still valid in c#, so you could argue a lot of return values arent used as the boolean in that case isnt used in a single line of

a= b;

LizR 171 Posting Virtuoso

Just because a function returns something it isnt always required you want it.. While I havent checked Im fairly sure you can do so with most functions.. in fact things like

String s = "this is a test";
s.Replace("s","5");

Doesnt produce the desired effect because it returns a string, but the code didnt make use of it - but it compiles and runs :)

LizR 171 Posting Virtuoso

Why?

LizR 171 Posting Virtuoso

I guess you havent looked in your helpfile... Make a console app, click on the wor d static, press F1 - you have an example and explaination already.

LizR 171 Posting Virtuoso

Do you know what asynchronous means?

I guess not
http://dictionary.reference.com/browse/asynchronous