|
Jon Hulatt wrote: only one thread per process actually gets executed by GDI+ at a time
Interesting. Do you have a link to that information?
|
|
|
|
|
|
Do you know that person? I mean that is certainly not authoritative.
I would consider this[^], a more reliable source. Note that he speaks specifically about Vista. I have no idea if previous implementations are identical in this regard.
|
|
|
|
|
Hi u all!!!
I have a website, dedicated to beauty products for women, ok? Sometime ago a friend of mine told me "hey! why don´t you send that info through MSN?". I liked that, so I downloaded an autoresponder code from here:
http://nayyeri.net/blog/auto-responder-add-in-for-windows -live-messenger/
So I simply added this routine to get search results from my site:
public string getSiteSearchResults()
{ string reader = "";
string search = "[the received message text goes here]";
string url = "[the URL of my website search page]?query="+ search;
try
{
WebPermission pWeb = new WebPermission(NetworkAccess.Connect, url);
SecurityPermission pSec = new SecurityPermission(SecurityPermissionFlag.AllFlags);
PermissionSet set = new PermissionSet(PermissionState.None);
set.AddPermission(pWeb);
set.AddPermission(pSec);
set.Assert();
HttpWebRequest URLReq = (HttpWebRequest)WebRequest.Create(url);
URLReq.Credentials = CredentialCache.DefaultCredentials;
URLReq.AuthenticationLevel = System.Net.Security.AuthenticationLevel.None;
URLReq.AllowAutoRedirect = true;
URLReq.Timeout = 60000;
HttpWebResponse URLRes = (HttpWebResponse)URLReq.GetResponse();
Encoding enc = Encoding.GetEncoding(1252);
StreamReader sStream = new StreamReader(URLRes.GetResponseStream(), enc);
reader = sStream.ReadToEnd();
}
catch (Exception ex)
{
reader = ex.Message ;
}
return (reader);
}
So when somebody asks for some product, the addin (working on one of my pcs) do a search on my site, get the results and send ´em in response as plain text.
Well, instead of that, all I get is this:
Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I read about gacutil, regasm, caspol, trust zones, trusted assembly, security zones...... but don´t have a clue where to start to get rid of this thing, really.
Any help is truly appreciated
Txs in adv
Ariel
|
|
|
|
|
|
bhargava2409 wrote: hi,
I am Trying to Design a 3D Auto CADD viewer is there any one know coding to how to design that.
I think you have a typo in that. should it not read...
hi,
I am Trying to get somebody else to design a 3D Auto CADD viewer is there any one know coding to how to design that.
If you want to 'try' to do something then the key is to 'try' to do it
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
bhargava2409 wrote: 3D Auto CADD viewer is there any one know coding to how to design that.
Yes. I do.
My fee is 1 trillion GBP. 50% deposit payable in advance. If you would just be kind enough to post your bank details so I can withdraw my fee I'll get started.
Simon
|
|
|
|
|
|
bhargava2409 wrote: less talk more work
I don't work for you, I'll do what I like thanks.
If you ask questions sensible and politely I'm sure you'll get sensible answers.
What you are talking about is a large scale project. If you don't have the expertise to do this yourself I suggest you either buy a component that you can use to provide the needed functionality, or you can find a developer/team of developers who you can pay to guide you.
I'm quite happy to answer specific questions you might have, but I'm not going to provide a full design and implementation of a large system for you, or guide you in how to go about developing one.
Simon
|
|
|
|
|
hi,
I am trying to include a Solid works image to my c# Project.Is there any chance to include that or is there any way to show solid works image in the .net projects.
|
|
|
|
|
So solid works in a 3D modelling program? you want to put an image in you application? What format is the image? Are you using windows forms? if so many of the controls have a BackgroundImage property. Also you could use a picture box which is specifically designed to display images (thou not the best control I might add).
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
yes,I am tying to view an solid works image which have extensions like SLDPRT,SLDSM in my .net project I think what You have sujjested doesn't work for my requirement.
|
|
|
|
|
hi
i need to use a solidworks image in c# i need source cod can you help me about this topic?
|
|
|
|
|
hi can we get the code for reteriving the image from sql data base using browse button
Shomic goyal
|
|
|
|
|
hellow i also need same code
can anubody help us plzzzzzzzzzzz
|
|
|
|
|
you both on the same course? and the answer to your questions is of course - no, you cant have the code.
Look into the System.Data.SQLClient classes and give it a go yourselves.
And might I suggest a better explanation of your problem too
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
i am sorry i have one code for reteriving the image form data base but at present it not working so can i have the another option for that
|
|
|
|
|
Well as i dont know what your code is how can i possible know what the 'other' option is?
I would hate to give you the same option you are already using.
Why dont you post you code and detail the error you are getting and we can try to help you from there
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Inserting
------------------------------------------------------------
ms = new MemoryStream();
pbEmp.Image.Save(ms,System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] data = new byte[ms.Length];
ms.Position = 0;
ms.Read(data, 0, Convert.ToInt32(ms.Length));
cmd.Parameters.AddWithValue("@Photo", data);
Retrieving
------------------------------------------------------------
byte[] data = (byte[])ds.Tables["tablename"].Rows[0][0];
ms = new MemoryStream(data);
picturebox.Image = Image.FromStream(ms);
|
|
|
|
|
i have 2 tables named : Customers, Orders which have relation together (Customers table is Parent table).
Now in my form, i have 2 DataGridView which display list of customers (in dataGridView1) and list of orders of selected customers (in dataGridView).
i wrote this code, but at runTime all orders display to dataGridView2 and when i change customer record, nothing happend!
here is my code :
TestDataSet ds = new TestDataSet();
private void Form2_Load(object sender, EventArgs e)
{
TestDataSetTableAdapters.CustomersTableAdapter cA = new TestDataSetTableAdapters.CustomersTableAdapter();
cA.FillCustomers(ds.Customers);
TestDataSetTableAdapters.OrdersTableAdapter oA = new TransactionalUpdate.TestDataSetTableAdapters.OrdersTableAdapter();
oA.FillOrders(ds.Orders);
dataGridView1.DataSource = ds.Customers.DefaultView;
dataGridView2.DataMember = ds.Orders.ParentRelations[0].RelationName;
dataGridView2.DataSource = ds.Orders.DefaultView;
}
can anybody help me to solve this problem ?
Thanks
|
|
|
|
|
hi I need to implement a formula translator in C#.
As an input I have a validated mathematical formula string such as "a+b*c+(c/d)".
I want to calculate this formula at runtime when parameters (a, b, c & d) are available.
As far as my application is concerned the formulas used will always be simple algebraic ones(as shown in the example)
Is there any existing facility in C# to do this?
OR any suggestions to implement this on our own?
|
|
|
|
|
There are, for instance, articles [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
can i get any links to those articles?
~~ Chase Excellence, Success will follow. ~~
|
|
|
|
|
I provided the links.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Someone out there must be able to help me...
I'm trying to find/design a way of automating my project's builds, publishing, versioning in VSS etc and I'd like to create an app/script that will obey my command and do in one easy button click, what would otherwise take copious amounts of time & attention.
The general idea is: Build a project/solution based on the .*proj files, publish the project with different config settings & install location depending on whether the app is going to QA, Pre-Prod or Production. I would also like to be able to have Source Safe's labelling done automatically.
So far, I have found that Microsoft's MSBuild Reference on MSDN is virtually useless ( ???), but I have been able to compile a project via the command line using it.
I found that Microsoft.Build.BuildEngine looked perfect for what I'm trying to acheive, however, using the following code, I can't get it to build the project:
Engine engine = new Engine();
Project project = new Project(engine);
project.Load(strProjFile);
project.Build();
The Build method on the Project keeps returning False - no error, nothing. (Before you ask, yes, the path to the project file is correct - the same file builds fine through VS2008 as well as MSBuild)
(Oh, and again, Great Job Microsoft on the crummy documentation)
If anyone has an idea of where I am going wrong, please, please, please! Let me know 
|
|
|
|