|
I am using Microsoft.Dynamics.BusinessConnectorNet with this which is compiled in 2.0 version.
My dll works fine in .net environment where i can set supportedruntime in appconfig.
But when dll goes to JNI it is running under the latest .net framework i.e 4.0 installed in that system and giving the mixed mode assembly exception .
|
|
|
|
|
Well, we've told you the only way to do it, and you've even said that you've tried it and it works ("supportedruntime in appconfig").
The only other option you have to to get an updated Dynamics library and compile a second version of your .DLL that works with the .NET 4.0 CLR.
|
|
|
|
|
I am using Microsoft.Dynamics.BusinessConnectorNet with this which is compiled in 2.0 version.
My dll works fine in .net environment where i can set supportedruntime in appconfig.
But when dll goes to JNI it is running under the latest .net framework i.e 4.0 installed in that system and giving the mixed mode assembly exception .
|
|
|
|
|
I have downloaded SMS Project:" "Send and Read SMS through a GSM Modem using AT Commands from Code Project. It was worked for me. I have changed my modem then it's not working anymore.
I am getting error message like this.
"Port is Using by Another process"
I have checked all of connected port. No port was used by any process. But i have getting this error message again and again.
My GPRS Modem Model No: ZTE MF626. It using HSDPA technology.
Now i am looking for alternate solution. Is there any other code to send sms by GPRS Modem?
Or could anyone help me to find any effective SMS Module.
Advance Thanks.
|
|
|
|
|
olbinface wrote: "Port is Using by Another process"
I have checked all of connected port. No port was used by any process.
"Convince me"; how did you check that?
olbinface wrote: But i have getting this error message again and again.
Reboot your PC, open VS and try again. Probably a debug-version that's still running in the background and keeping the port open.
|
|
|
|
|
AT commands slightly vary from modem to modem. Make sure you can send SMS by using the AT commands through direct HyperTerminal communication channels not using any application.
To open Hyper terminal:
Start > Programs > Accessories > Communications and select Hypertermina or Type Hypertrm at Run
|
|
|
|
|
A file is sent to print,and I want to store the content of that file in a notepad file. Means I want to maintain A print Record, that which file & content of that file is printed by the printer in separate notepad or any word document.
File contains only text data. Not images
how I do this. Any suggestions for doing this in C#.Net. please share some code so that I can understand.
Thanks in advance.
|
|
|
|
|
I would think you would need to hook into the printers API to get at the file. You might be able to monitor the network connection to the printer. Just some ideas, I would examine the business requirement very carefully it sound like a really great time waster!
Opening the file would depend on the file type, I would store the file in it's original format.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I Want To Create a Windows Application in addition I Want Its Records To be made available for accessing it through Internet....................!
Any Idea Or Guidance would be must for me....
Right now I have no Idea how to made my Windows Application's records to accessed Online The main reason is that am just A BEGINNER programmer wanna try something other than book work So Plzzzzzz! Help Me
|
|
|
|
|
If you are not willing to use a book then you need to take lessons, we can't magic the knowledge into your head!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
AmEhsaas wrote: I Want To Create a Windows Application Then you need to study one of the languages that can create Windows applications. As this is the C# forum I suspect that may be your choice, so you could start by reading .NET Book Zero, by Charles Petzold[^].
AmEhsaas wrote: in addition I Want Its Records To be made available for accessing it through Internet Then you need to study web development, probably starting at the ASP.NET home page[^].
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
first step:
analyzes your application
second step:
model a database
third step:
try to use n-layer model. is the best way for use a windows form / web form project
in internet there's a lot of examples how you can conect database, n - layer applications, consult youtube is the best for tutorial!!
|
|
|
|
|
Thanx! Sir Hope This Would HELP me alot..
|
|
|
|
|
How do you tell if an enum was passed as a parameter?
If it's not broken, fix it until it is
|
|
|
|
|
Why would you suppose that it wasn't?
|
|
|
|
|
I didn't just post some random question for the sake of posting.
I have a situation where I can call the method with or without the enum.
If it's not broken, fix it until it is
|
|
|
|
|
It usually helps to describe the problem, rather than posting a cryptic one-line summary.
Are you calling a method with an optional parameter? If so, any call which omits the optional parameter will automatically pass the declared default value:
void SomeMethod(SomeEnum theParameter = SomeEnum.Default) { ... }
SomeMethod();
If you're not using an optional parameter, you'll need to provide more information.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I posted "How do you tell IF an enum was passed as a parameter?"
Therefore, it should be clear that it is indeed an optional parameter. Not sure how that's "cryptic".
But yes, I want to be able call the method with or without the enum. Getting the default value doesn't help as there's still no way to kow if it was passed or not.
If it's not broken, fix it until it is
|
|
|
|
|
It may be obvious to you, but you wrote the question. Your question made no sense to me either.
|
|
|
|
|
Sorry, most of us wear foil hats to prevent the government from reading our minds. This has the unfortunate side-effect of blocking our own telepathic abilities.
Your original question, "How do you tell if an enum was passed as a parameter?", might have been obvious to you, but judging by the responses you've received, it's not as obvious to other people as you might think. If you'd asked, "I have a method with an optional parameter; how can I tell whether or not the caller passed the parameter?", or included a small code snippet, we'd have had a better chance of understanding what you were asking.
To answer your question, there's no way to tell the difference between code which didn't pass the optional parameter and code which passed the default value for the optional parameter. The compiler generates exactly the same code for both.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Kevin Marois wrote: it should be clear that it is indeed an optional parameter
I hadn't even considered it might be; I never user optional parameters.
Sounds like you want an overload instead. Come on, go olde school.
|
|
|
|
|
That's difficult to answer without knowing the signature of the method you are talking about.
if the sig is:
void MyMethod(MyEnum me) {} Then it is safe to say that me contains an enum value.
it it is:
void MyMethod(int i) {} Then it could be an enum, since they are integer values.
If you mean "Can I find out if an object was an enum?" then:
enum xx
{
v1, v2
}
void MyMethod(object o)
{
Console.WriteLine(o);
if (o is xx) Console.WriteLine("XX");
if (o is int) Console.WriteLine("INT");
}
void TryIt()
{
int i = 13;
xx x = xx.v2;
MyMethod(i);
MyMethod(x);
MyMethod((int)x);
}
Will print:
13
INT
v2
XX
1
INT
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
No, I'm not passing an int. I'm passing the actual enum value, as in
void MyMethod(bool var1, MyEnum theEnum)
{
}
then I want to either call it as
MyMethod(true);
or
MyMethod(true, MyEnum.TheValue);
So I want to determine of the enum was passed.
If it's not broken, fix it until it is
|
|
|
|
|
Depends on which version of .NET you are using.
.NET 4 introtuced Optional Parameters:
enum MyEnum
{
DefaultValue,
v1, v2
}
void TryIt()
{
MyMethod(true, MyEnum.v1);
MyMethod(false);
}
void MyMethod(bool var1, MyEnum theEnum = MyEnum.DefaultValue) { Console.WriteLine(theEnum); }
Before that, you could use params :
void MyMethod(bool var1, params MyEnum[] theEnum) { Console.WriteLine(theEnum); }
Which is a lot nastier.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
Ya I'm in 3.5. So far I'm passing a bool to indicate if the enum was passed. Seems like there's no easy way.
If it's not broken, fix it until it is
|
|
|
|