We need more information to be able to help. What does "won't work" mean? Also, please post whatever code you've written so far.
We need more information to be able to help. What does "won't work" mean? Also, please post whatever code you've written so far.
I was wondering if those @ numbers mean that they all point to the same thing
I'm saying I don't think they do. Now that I know you're using DLL Export Viewer, I can say that with certainty. The two hex columns after the name are "address" and "relative address"--these tell you where the names point.
but I will assume you are correct.
Don't assume, we know what that does :)
I've checked off Show Unmangled Names only.
Well, different compilers mangle names differently. I think one of two things is going on here: Either DLL Export Viewer doesn't officially support unmangling the output of whatever compiler was used originally, but it does well enough that all it leaves is the parameter size at the end; or maybe it's adding the parameter size to the name itself, though that seems unlikely.
All of the examples I've seen have ordinals separated from the function name by white space; your numbers appear to be part of the mangled names. I think @28
indicates the total size of the function's arguments.
Check your firewall to see if port 5551 should be blocked, add an exception if needed, then try again.
If it's still broken, see if binding to localhost (127.0.0.1) works.
i have tried but fail .
So tell us, what does "fail" mean here? What are you expecting to happen when you run this server and client? What actually happens when you do?
When I've seen this kind of error before, it's usually one of two things:
I'd look at #1 first--which ActiveX components are you using, and are they all installed on the test PC?
i going to make socket application in c# i dont know more about socket but i have tried but fail .
Please post the code you have tried so far; this will help us identify what your problem is.
1)my server is located in other city .
That's fine, as long as the server is connected to the Internet.
2)what type of socket i need TCP or UDP ?
That depends on what the server is listening for. What software is the server running that you want to connect to?
3)what ip i need to use public or any other ?
If you don't care, you can just connect your socket; the .NET runtime library will pick a local endpoint for you. If you want to use a specific endpoint, look at Socket.Bind
.
4)what is port i can use aor how to configure port ?
Socket.Bind
again. If you don't call it, it will just pick a port for you on the client end. If you want to use a specific local IP but don't care about the port, specify port 0.
5) and any more whatever need to do this . plz its v important for me .
I recommend Beej's Guide to Network Programming for information on how sockets work.
Read about System.Net.Sockets.Socket for language/platform specifics.
Aha. I might have found your problem.
cmd.CommandText = "INSERT INTO customerdetails (ID,First Name,Second Name,Date,Quantity,Type) VALUES (@ID, @FirstName, @SecondName, @Date, @Quantity, @Type)"
The MySQL Connector/NET doesn't support '@'
as a parameter indicator any more. You'll want to use '?'
instead.
Are you using the standard MySQL Connector/NET? That's what it looks like; I'm just making sure.
An exception of type 'MySql.Data.MySqlClient.MySqlException' occurred in MySql.Data.dll but was not handled in user code
That means something's wrong with your query--can you put a Catch
block in your code that prints out the exception details?
Please post both the code and the error message; we can't help you if we don't know what's going on.
i get an error stating that " an object reference is required for the non static field, mehtod or property", i have changed the modifiers of my text box to pubic and this still has not worked
Assuming the error is referring to the text box lines, it isn't about access modifiers. What it's trying to tell you is that GetPostings2
doesn't know anything about the object you know as frmAssetPostings
.
You could "solve" this by defining GetPostings2
as part of a class that has a reference to the form, or even by passing the form as a parameter to the method--but this isn't a good design pattern.
Really, your GetPostings2
method doesn't really need to know anything about the forms in the application that calls it, just the values of the "from" and "to" text boxes. Making the entire form available is overkill, and makes this method only work with the specific form you've designed.
Instead, just make the "from" and "to" values additional string parameters to the method. If you do that, the method can be called from anywhere that can provide values for the parameters--this is a Good Thing(tm) and is a variety of loose coupling.
How can I build lib file with the souce code?
Create a new library project containing icc.c
. This file depends on icc.h
, iccstd.c
and iccV42.h
, so make sure they still exist (the other C files are for tools and test programs). MSDN has some articles about creating and linking to libraries.
If you don't care about having a separate library, you can add icc.c
to your project directly; that should work as well.
"nab" isn't a permutation of "abnana". Permutations can get you closer to a complete solution, but that's not all there is to it.
True, you'd also need to look at subsets of the original set of letters.
For completeness, you'd also want to consider a nonempty game board, which would involve finding words with specific letters in fixed positions.
It looks like you're not linking to icclib. If you downloaded it from the link you provided, you only have source code, so you'll have to either build it as well, or find a lib file someone has already built.
both the strings are not working for me
If you want specific help, give us specific problems; "not working" doesn't tell us much. Does the runtime throw an exception? Any error messages?
http://www.connectionstrings.com/ is a useful resource if you're having trouble getting the connection strings right. Check out their FoxPro page.
I occasionally work with .NET applications that connect to FoxPro databases; we use the OLE DB drivers.
As for the column names, that's a choice on the part of the database designer--though if I remember correctly, FoxPro column names can't be very long; that's why the cryptic abbreviations.
vb error within the SQL command
That doesn't exist.
VB is complaining about VB code. It doesn't parse SQL code--you won't find out if it's correct or not until you get the VB part straightened out so that it compiles and runs. You'll get a runtime exception if the SQL isn't right.
An experiment to try:
Int.parse(TextBox1.Text)
You have the above expression inline as part of the string definition. Try assigning the result of this expression to a variable in its own line, and use the variable instead when you're concatenating strings. See which line the compiler complains about.
But wait:
"UPDATE Raw_Materials SET Quantity=+('" & Int.parse(TextBox1.Text) & "') WHERE Part number=('" & ComboBox1.SelectedItem & ") "
So you're parsing some text into an integer, and then immediately you convert it back to text? Why not use TextBox1.Text
directly? If you're using Int.parse
to guarantee that it's a number, that's not a best practice. Better: Set up the text box so it only allows numeric input.
SET quantity+(number)
. .... Is this the correct way to add values to a row in a database?
No.
A standard SQL UPDATE statement would look more like this: UPDATE Raw_Materials SET Quantity = Quantity + ####
If you're able to run queries directly in your database (exactly how will depend on what kind of database it is), you can test your SQL separately first. I think that's a good idea; it's what I do …
Consider using something like an XmlDocument instead of using the writer directly. It'll be easier to do arbitrary things to your bookmark list with the XML DOM.
If the site doesn't do standard C++ commands like cin what makes you think it would do a system specific O/S calls like system("pause")?
The site's author explains: "The strategy is to run everything under ptrace, with many system calls disallowed or ignored." Doesn't say which ones are which--system("pause")
may well do something other than murder the running program. Maybe it throws an exception, maybe it simply returns a nonzero value. I didn't try it myself, so I don't know, and I'd rather not assume.
Ah, I see now. Without the typo, it actually compiles just fine. It's when codepad.org tries to run the program that there's a problem.
From the "output" section:
Please enter a 16 character key (signifying 16 bytes):
Floating point exception
My guess is that codepad.org is breaking when it gets to cin >> input
--it looks like the site doesn't do interactive input.
If you want to make it work there, replace any cin
lines with string literals. You'll also probably run into problems with system("pause")
.
Alternatively, you could set up a compiler on your local machine and run it from there.
Which assembly are you missing?
What compiler are you using? I don't get a floating point error.
In other news, you have an unmatched block comment end on line 104:
*/
The CLR Profiler analyzes memory allocation. For performance analysis, I've found SlimTune to be useful. A quick Internet search should turn up a bunch of other tools as well.
The code looks okay. OleDbConnection
lives in System.Data.dll
; does your project reference this assembly?
I'm not that familiar with C# but try replacing
The 'at' symbol in front of the initial double quote makes it a verbatim string literal; no escaping is necessary for the backslashes.
but the error is "could not find file"
I presume the exception is thrown in the call to myconnection.Open()
--is that correct? Could you include the entire exception message?
Also, I have to ask... the file does exist, right? Can you copy that file path into Explorer and get Access to open the file?
If the file exists, then this might be a security/permissions-related issue.
I think you'll get the most value out of working with parse trees of the expressions rather than trying to do it all with string manipulation.
For reading in text equations, have a look at the shunting-yard algorithm.
I can get it to display just fine. Could you post your entire program?
then I used GDB to debug testasm, and issued the command "disassemble main"
Thus GDB gave you the disassembly for main
and nothing else. Because you put msg
in a different section, NASM could have put that anywhere in the resulting binary. If I recall correctly, GDB's disassemble
command only works on a range of memory, either explicit or identified with a symbol like main
--someone who's more familiar with GDB might be able to correct me here if I'm wrong.
You might try a dedicated disassembler on the compiled executable; for x86 disassembly, the free version of IDA has worked well for me.
If I declare b as zero at the top of the program above the while command the program runs but into an infinate loop WHY?
Indentation matters in Python. As you wrote it, line 3 (b += 1
) is not part of the loop. Indent this line to match the print
statement and it should work as you expect.
Also, instead of a while
loop, consider using a for
loop here.
An SSCCE that illustrates what you're doing would still be useful--knowing the type of application and how you're trying to solve your problem will help us help you.
Depending on your needs, it may be simpler to write runReport
as a simple application, and use a job scheduler to actually run it--unless you want the experience of writing a scheduler yourself.
What you need to do is going to depend on your operating system. For a Windows machine, the easiest thing I can think of is to enable the "Stereo Mix" audio device, then use it as an audio source in your application. You'll need some sort of library for receiving sound, too.
You should be able to add an xmlns
attribute to the root element of the XML document. What does the scanner return to you (e.g., text, an XML DOM object)?
i am now using this code
but still i got same error , :(
Look at the return value of File.Create
--it returns a FileStream
object. If you want to close the file immediately, you need to do something like this:
FileStream fs = File.Create("fred.txt");
fs.Close();
Or if you're into the whole brevity thing:
File.Create("barney.txt").Close();
If you're going to be writing to it pretty soon after, though, it's better to keep the stream object around and just write to it later.
If i use a static variable it becomes out of scope
I'm not sure what you mean by that. Do you have some simple example code we could use to reproduce your problem?
Which line is that exception coming from? My guess is it's one of your Convert.ToDouble
lines.
please help me out here guys..
I see a list of what you want to do, but no actual question. Have you tried creating the "change password" form yet? Is there anything specific that's bothering you?
I'm not aware of any.
While we're here, though, let's take a look a this "Development Challenge":
Create a concept for a valuable and innovative POS 2.0 application using any or all of the IP Commerce Platform or APIs. Impress us with your idea and you could win $5000 to get your app off the ground!
They're actually looking for concept proposals. Look at the judging panel bios--no mention of any technical background, just management and executive-type experience. They may well have some tech chops themselves, but it sure isn't the focus of this "challenge."
Also note:
Since use of our software is critical to this challenge, you should take some time and review our Commerce APIs.
And in the "Official Rules & Regulations":
The Developers Challenge Series, sponsored by IP Commerce, Inc. is a contest to encourage the development of software applications that highlights the capabilities of IP Commerce® Platform™, Playlists™ and other software
Further on:
The judges will rate the Entries on the following general criteria:
1. Level and nature of innovation
2. Use of IP Commerce software and tools
3. Marketability of the proposed application
4. Realistic time period for final application development
This is not a contest, it's a marketing strategy. They have an application platform they want to get out into the world. By attaching a cash incentive, they hope to attract a variety of hopeful developers, and they're counting on more participants …
I'd start by making sure you're clear on the hydraulic model you're supposed to be using. If it really is just a sine wave, things get much simpler--but it sounds like you may be expected to do more of a simulation.
I meant that I was able to access the wave period in seconds, but not the wave length in metres.
Ah. Makes more sense now. Hm. If the ship were motionless, you wouldn't need the physical length of the wave, just the time and amplitude. But if it's moving, I think you'd need the wave length to compare with... offhand, I'm not sure how to do without it, unless you're supposed to have some sort of way to figure the length from the timing--larger waves do roll more slowly than little ones, if I recall correctly.
Actually I'm supposed to generate the ship's pitch, roll, height and position, based on the given information.
I don't know if you have a specific model for the wave and ship, but you should be able to derive them something roughly like this:
in a scenario where the ship and wave are travelling in the same direction, does the assumption that the ship will be constantly on the same point of the wave hold any water?
Pun intended? :)
If they're traveling at the same speed, yes; otherwise, no.
Given only the ship speed, wave period and amplitude (no wave length!)
I don't see anything that tells us how fast the wave itself is traveling, unless it's meant to be still and you're just tracing the sine wave with your ship.
From the information you've given, it looks like you're supposed to come up with a parameterized function that, given the wave characteristics and a time, returns the ship's position--perhaps something similar to evaluating y = a sin(vt)
? (I left out the wave period and motion for now)
Do you need help actually drawing the graph, or is your question about how to collect the data? Have you tried to write any code yourself yet?