|
Sorry for the delay in replying, BTW, but my phone line was down so no internet.
All fixed now.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Thanks again,
I managed using the Module throgh the VBproject as reference.
Is there a way to Create a C# project (w/o any VBproject reference in it)
and add a vb Module to it ?
I tryed but failed.
Thanks.
modified on Tuesday, September 8, 2009 1:52 AM
|
|
|
|
|
I you mean "Can I have a project with a C# source file and a VB source file in it?" then no. You can have a solution with a C# project, and a VB project though.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
i'm using 1.1 framework and my customer using 2.00 framework.
he is saveing a Serialized file that have MemoryStream.
when i'm trying to Deserialize the file i get an Exception.
(if i try to Deserialize in 2.00 framework it's ok)
how can i Deserialize in 1.1 framework ?
|
|
|
|
|
Which serializer are you using? If it is XML, then you stand a chance of reading different framework versions, but Binary is very unlikely to work. This is an unusual situation, the normal way round is for the customer to have the more outdated software!
There are two ways I can think of:
1) Install framework 2.0 - this would be the better long term solution. In fact, go the whole hog and go for the latest version!
2) Create a 2.0 version of your app, deserialize. Manually write all the important data to a separate file. Create a special version of your 1.1 app, which can read the separate file. Serialize. Do not loose the two intermediate programs as you will need them again if you do. Create copious notes on what to do, how, and why.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
the file is Binary.
the problem is that my program is distribute to a lot of people,
and i have a problem when tomorrow microsoft develop 4.00 or 5.00 or 6.00 framework version,
and i can't compatible my old version to the new one.
|
|
|
|
|
Then you realy have no choice but to create intermediate programs to use to solve the problem each time it occurs.
I would strongly suggest you look at moving to XML serialization for the next version, with a conversion program to update older data files from 1.1 (or 2.0) to the latest version.
Not that it's a lot of help to you, but I do generaly try to avoid serialization for just this reason - it's not always avoidable, so use the most portable version you can!
Good luck!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Take a look at Custom Serialization - MSDN[^] to see if it is of any help.
From the page.
By controlling serialization, it is possible to ensure serialization compatibility, which is the ability to serialize and deserialize between versions of a type without breaking the core functionality of the type.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
When I open crystal report(In Visual Studio 2005 project) and then go in field explorer.right click
on 'Database fields'>then choose 'database expert'
>Then create new connection>then choose 'OLE DB(ADO)' >Then Choose 'Microsoft OLE DB Provider for SQL' from List > Then Click next ........
Then system ask for Server name,username,password,
Database name and Integrated security.
I give all info correct but following error occur
Logon Failed.
Details: ADO Error code: 0x
Source: Microsoft OLE DB Provider For SQL Server
Description: [DBNETLIB][Connection Open (Connect()).] SQL Server does not exist for access denied.
SQL State: 08001
Native error:
There is only Problem in report not project.
project is running fine. it connects database,fetch and insert data without any error
Thankz in advance
Regards
Kashif
modified on Wednesday, September 9, 2009 5:19 AM
|
|
|
|
|
Dear All,
I am trying to establish setup using Click Once Deployment. I have following questions.
1. My Application for sure uses .Net framework 2.0, can we integerate .Net Framework into my setup project which should be installed prior to application setup?
2. My Application also requires Adobe Acrobat Plugin to read PDF Files, can we integrate PDF Reader or any other resoures "DLLs of Adoble Only" into My Application which should be installed prior to My Application setup?
Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hi Abdul,
If you open your project properties, and look in the "publish" section, you can find settings for all of this (required assemblies etc etc).
Click Once enables you to create a bootstrapper that will install additional software, either from the server you are hosting the application on, or from the vendors homepage.
Hope this helps,
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|
|
hi,
Lets say i have a class named 'MyClass'. This class contains a field, 'Key', that behaves like a PK for all of the class instances, means that only one instance can have the value X for this 'Key' field.
Now i need to serialize this class and transfer it, but if the other side already has a 'MyClass' instance with the same 'Key' value i get two instances contains the same 'Key' field value... Problem.
ideas?
thanks
|
|
|
|
|
Hi,
two ways to solve this:
1.
you allow identical keys on different machines; then you have to decide what must happen when a key clash occurs (e.g. local one wins; incoming one wins; both instances get merged somehow; ...) That becomes a functional spec.
2.
you do not allow identical keys on different machines. Make your key generator such that it cannot happen. simple example: give each machine a range of non-overlapping available keys. For up to 16 machines: assign a number N in [0,F] to each machine, and make sure each key (looking at it in hex) ends on the machine number N (so 16*sequentialNumber+N).
|
|
|
|
|
The key is intentionally the same, so the second idea is out.
The first idea seem to be good but i feel i miss a much easier solution like changing the deserialization behavior...
Is there is a way to cause the deserialization process to return an existing instance instead of creating a new one?
thanks.
|
|
|
|
|
I don't know.
|
|
|
|
|
Going off the previous response, you could generate a key using a GUID or something similar derived from the MAC address.
|
|
|
|
|
Hey guys,
I was wondering if there was a way to listen for specific keys from another application.
Before anyone jumps to conclusions (that's usually the case with these types of questions, lol), I'm playing a game and I would like to re-map some controls.
For example, whenever I press keystroke 'A', I want the application to process the keystroke, and send keystroke 'B'. It doesn't matter if the game actually receives 'A' AND 'B' (the original 'A' from the keyboard input).
I'm comfortable with reading the keys and using windows API to send keys too, but my problem is that the form actually needs to be active, but that wouldn't be the case when I'm playing the game.
So... I guess the question comes down to... Is it possible to have a Windows Forms Application to perform tasks in the background while another application is active?
This would be a work-around of creating a windows service JUST FOR THIS which I really would want to avoid since I just want something really simple done... lol
If anyone has some clues/info, I'd really appreciate it.
Thanks!
|
|
|
|
|
I don't know if Processing Global Mouse and Keyboard Hooks in C#[^] is of any use in your situation, but It could give you some ideas, if nothing else.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I'll check it out. Thanks Henry!
|
|
|
|
|
I used a hook to listen for keyup/down system wide in this[^] article - it may be of use to see the principle in action.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi
i've installed ssrs in my sql server database machine (with xp sp2)
but when i go to this link : http://localhost/reports i got this error :
The report server is not responding. Verify that the report server is running and can be accessed from this computer.
i tried this 2 links, but still i got the same error :
http://technotes.towardsjob.com/sql-server/troubleshooting-ssrs-error-the-report-server-is-not-responding/
http://sanjaysainitech.blogspot.com/2009/03/error-report-server-is-not-responding.html
Note : in second link i don't know how to give permisson to my account in .config files. maybe that's my problem
any help ?
|
|
|
|
|
I do not see where this has anything to do with c#.
You may get lucky and receive a good answer, but I would have thought that this question really belongs in the General Database forum.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hey budyies i wanted to access(insert datas in to) a listview item in one of my other forms ........... while the form that contains the listview is running(lets say it FormListView ) and the other form is still running @ the same time(lets say FormSender ) ......... I wanted to read a data from the listview in the FormSender and send it back to the FormListView ......... even if I make the Modifier Property of the FormListView as Public I cant call it like this from the FormSender
FormListView.listView1.Items.add("xxxx");
but I can access variables that are declared like this ....
Public static string x;
I can access by writing this code with out creating its instance
FormListView.x="xxxxx";
Please help me.
Thank you
|
|
|
|
|
I'd create public or internal Add and Read methods on the FormListView (keeping the ListView 's access modifier private).
When you create the instance, hold it in a field
public class FormSender
{
FormListView formListView;
void MethodThatInstanciatesFormListView()
{
formListView = new FormListView();
formListView.Show();
}
void ReadData()
{
List<Data> data = formListView.Read();
}
void AddData(Data data)
{
formListView.Add(data);
}
}
public class FormListView
{
public List<Data> Read()
{
}
public void Add(Data data)
{
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
DaveyM69 wrote: List data
what does the "List " and "<Data>" refers to....sry I have no idea abt that ... but I will try it .... and 1 more question.
DaveyM69 wrote: void AddData(Data data)
what data type is this "Data "
Thank you for ur help.
|
|
|
|