|
Pick something for the Web Service to do, like a converter between metric and english units. Then pick a platform and language to write it in. Write the service.
Pick another language and platform to write a consumer app in that calls the Web Service. Write that.
Test, fix, rinse and repeat.
Other than that, I have no idea what you're asking. Where to start on what?? Writing the web service?? Or the consumer app?? Is it the language and/or platforms you don't know anything about?? How about starting with what the languages and platforms you DO know. Those would be ...??
|
|
|
|
|
I have done a little VB.net 2003 front end which retrieves data from access database back end some SQL, i know of JAVA, C# etc but never used them. But looks as if i am going to have to start.
I may employ third-party libraries or source code as part of your application, but the essential functionality – especially the Web Service, above – must be my own creation. Any third-party libraries or source code you use must be credited in comments within your source code, and in the report
|
|
|
|
|
OK. Then start with VB.NET writing the Web Service. Create a simple one first that just takes a number as an argument and returns the same number back.
You don't need a client app to write a web service. When you execute the service, it'll start up it's own web page you can use to test the service.
|
|
|
|
|
Thanks again Dave i have done a google ap wich is pretty cool just need to think what i can create on my own or add-on to something else.
|
|
|
|
|
I am writing a program in VB.NET. I am used to coding in PHP, but am writing a business systems program and figured it would be best to do it in VB.NET.
I am using the System.IO class to use BinaryReader and BinaryWriter to read and write my files.
What is the best way of doing this? I thought that I would use binary files so that noone can open my files and physically see the contents of them.
I want to store my data in data structures.
Here is an example of one of my data structures and a few questions.
1) Am I supposed to store binary data in a data structure?
2) Do I need to define the length of each string column in the data structure record?
3) Can I search the contents of the binary file (array?) by for an example name, column or line number?
For an example. I would like to be able to fill a list box collection with all the teacher names, meaning separating one of the column in the record from the rest.
Here is an example of my teacher structure.
Structure teachStruc<br />
Public intTeachID As Integer<br />
<VBFixedString(25)> Public strTeachName As String<br />
<VBFixedString(15)> Public strTeachPhone As String<br />
<VBFixedString(15)> Public strTeachCell As String<br />
<VBFixedString(128)> Public strTeachAdd As String<br />
<VBFixedString(5)> Public strTeachAptNum As String<br />
<VBFixedString(25)> Public strTeachCity As String<br />
<VBFixedString(3)> Public strTeachState As String<br />
Public intTeachZip As Integer<br />
Public dtTeachStartDate As Date<br />
<VBFixedString(128)> Public strTeachEmail As String<br />
<VBFixedString(128)> Public strTeachInst As String<br />
End Structure
|
|
|
|
|
AAGTHosting wrote: I thought that I would use binary files so that noone can open my files and physically see the contents of them.
Who told you that?? Writing a string to a binary file is not a form of encryption of protection for the files contents. You will still be able to see the string if you open the file in Notepad. It'll just be surrounds by a bunch of other junk that isn't so readily readable.
AAGTHosting wrote: 1) Am I supposed to store binary data in a data structure?
You could, but you don't have to.
AAGTHosting wrote: 2) Do I need to define the length of each string column in the data structure record?
Yep.
AAGTHosting wrote: 3) Can I search the contents of the binary file (array?) by for an example name, column or line number?
Nope. You'd have to read the file into a collection of records, then search the collection.
You're complicating things more than they should be. You could easily get away with doing this in an XML file. You could even encrypt the sensitive data and write the encrypted data to the file, only decrypting it when the file is read back into your app.
|
|
|
|
|
Binary means bytes. It doesn't matter if it's a string, or integer, it's just bytes.
You would need to define how the records are blocked - another words how many bytes to allocate to each field. For instance, strings would have to be padded with blanks.
IMO, you would do better using a database handler like SQL Express.
Otherwise you would have to do your own sorting / searching / marking for deletion, etc.
Naturally, if one used HexEdit, they could see the data and figure out the format and blocking.
|
|
|
|
|
Is SQL express free and can I package it with my program, like maybe have it also install during set up time?
|
|
|
|
|
Yes!
The Fanatical All Black Supporter - Kea Kaha
|
|
|
|
|
AAGTHosting wrote: ) Am I supposed to store binary data in a data structure?
Not the way that you are attempting.
A structure is usually used for types that represent a single value, not a data record. It's recommended that a structure shouldn't be larger than 16 bytes, your structure is three times that size. Also, your structure contains objects, which more or less defeats the purpose of a structure.
A structure can not be read or written directly to a file, which it sounds like you were planning to do. You have to write each and every property to the file.
When in doubt, use a class. If you want to create a structure, you should read up on how a structure works exactly.
AAGTHosting wrote: 2) Do I need to define the length of each string column in the data structure record?
No. If you write a string using a BinaryWriter, it stores the string length in the file.
AAGTHosting wrote: 3) Can I search the contents of the binary file (array?) by for an example name, column or line number?
No. You can read the records from the file and look for property values.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi
I am getting this message when I run the application
" 1004 : Unable to set the PrintGridlines property of the Pagesetup class".
This application is running fine in Production . I am in the process of taking over the application from a different developer and it works fine on his machine too.
My PC is connected to a Network Printer and am able to print anything from
my PC. Infact based on the some info from Microsoft website, I went and
installed the printer driver and it still did fix the problem.
The code where I am getting the problem is as follows
With xlSheet.PageSetup
.PrintGridlines = True
.CenterHorizontally = True
End With
Any help in this regard will be appreciated
Regards
RS
-- modified at 14:13 Wednesday 24th October, 2007
rs
|
|
|
|
|
So is this a Windows Forms app, or ASP.NET app?
|
|
|
|
|
This is a Visual Basic 6.0 Application.
rs
|
|
|
|
|
The machine has to have at least one printer installed AND it must be selected as the Default Printer. Also, this printer must be able to support Page Setup properties. Printers like the Generic Text Printer driver do NOT support Page Setup, so setting properties still will not work.
What's the printer you have installed on this machine?? (Start/Settings/Printers...)
Another thing I just thought of. The parameters you put into the properties must be valid for the printer. For example, if the printer has a unprintable margin of .25" on the left side of the page and you try and set the margin to .10", it'll fail.
|
|
|
|
|
I have scoured google - looking for a component that will allow me to burn data cd's, from my VB.Net app.
The products I have found (vbaccelator, xpburn, binary magics) appear to have been abandoned. They give no to inquiries or emails.
What do you use?
|
|
|
|
|
I don't use any. But, I'd probably look into Nero's SDK[^].
|
|
|
|
|
So ? I use XPBurn and it works just fine.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
XPBurn is no longer on the MSDN web site - it's been 'phased out'. I managed to get a copy from another website. However there is no documentation, the XPBurnDocs.chm file points to a nonexistant link. No support. Also it needs to work with Vista.
This is a commercial product, I need a component with some support / commitment behind it.
|
|
|
|
|
It does work with Vista, we've tested it on Vista.
However, it sounds like you may want to buy a commercial SDK.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, I'd like to buy a commercial SDK - do you know of one?
|
|
|
|
|
If you want to burn cd's I highly reccomend numediasoft.com.
They give you the complete app - that burns DVD's, data cd's, audio cds, and is written to high standard. In 30 minutes I was burning cd's. It took a day to modify the app for my purposes.
NONE of the other CD burning packages returned my emails.
|
|
|
|
|
State:
We are developing desktop applications in VB.NET with .NET 2.0 and Visual Studio 2005. We use some 3rd party .NET and Win32 DLLs that are well tested. Nonetheless we sometimes encounter non-reproducible errors that look very much like memory corruption. (I.e. elements of a strongly typed array changing type in the middle of the array on their own, variables containing nothing even though a few lines of code earlier they are initialized). We are not sure if the memory problems originate from our code of from the libraries we use, but we lack any tool to validate that it is not our code.
Question:
What is a good VB.NET memory corruption detection tool?
Integration into Visual Studio would be nice, but is not a must.
Commercial or open source is both fine.
Thanks,
Ingmar
|
|
|
|
|
The only tool I've ever heard of for that is IBM's Rational Purify. I've never used, nor seen it, so I can't vouch for it's effectiveness.
|
|
|
|
|
Hi,
not really an answer to your question, but here it goes: you can do two tests without
any specialized tools:
1. run other software on the same machine
2. run your app on another machine
if 1. seems OK and 2. fails, you probably have bugs (such as thread synchronization problems);
if 1. fails and 2. seems OK, your machine most likely has a problem.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
This one is throwing me for a doozie. Have a program that is recording times and writing to a database. We are in testing mode right now. We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format.
So I wrote a q&d to output dates and noticed that when using firefox the date was in dd//mm/yyyy format and when in IE the format was in mm/dd/yyyy format.
But when we were testing we noticed that it sometimes would write in dd/mm/yyyy format from IE also. Sporadic.
The site is on the web server and the database is also on the same web server.
Anyone know how or why this would happen?
Thanx in advance.
Jude
|
|
|
|