|
Faraz Ahmed wrote: Before teaching me morals think thousand times.
Normally I would just let this lay as it stands but today I seem to be 'in a mood' so…
When you present information as 'good' IMHO you have the responsibility to validate the information as a whole. This includes making sure that the source is 'good'. A site that clearly plagiarizes information for it's own use is clearly NOT a good source. While the information may be valid it is tainted by the way it was delivered.
It took me all of 20 seconds to find out that article was a complete copy. One quick copy/paste into Google returned that hit on Wikipedia verbatim.
I guess I should have given you the benefit of the doubt that maybe you did not look as deep as I did, but then again, when presenting an information source as good you owe it to the communality to do your due-diligence as to the source.
If a book publisher sells a book that contains plagiaristic materials without doing their checking they can be held accountable in conjunction with the author. Again, due-diligence is key here.
For assuming you were the author intending to do the actual plagiarizing I apologize. But you still need to watch your sources. This is no better than being the one person caught forwarding a hoax email about a missing kid or people getting their organs stolen in their sleep. Do your homework just a bit before you pass out information.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Does anyone know of a RADIUS authentication library for .NET? I don't think there is one inherently in the framework. I would think there is a third-party vendor out there that makes one though. Anyone heard of one?
|
|
|
|
|
I have a program that has several access database and one excel file stored in the bin folder. I am having trouble building a setup program that will work. Program runs fine, just wont open - read the access or excel files.
FastTaxi
|
|
|
|
|
I am trying to pInvoke into a very simple C++ dll I have created, from my C# winforms app. I start by creating a C++ dll using the VC8 wizard, and checking off "export symbols" as I want to call a basic function from C#. By default the wizard creates a sample function and exports it.
However when I run my C# app, it says it can't find an entry point for the function name I have defined in my DLLImport attribute. I have made sure that the dll is in the same directory as my C# executable. Incidentally, I can pInvoke fine into other system dlls, so what am I doing wrong?
|
|
|
|
|
Paste some C/C++ source code about the function and the C# [DllImport] method.
The problem is probably the fact that the exported function is decorated.
If you know nothing about C/C++, your in for some confusion.
David
|
|
|
|
|
I'm developing - simple graphics editor, that should be placed on the web-site.
It downloads the picture from the MSSQL server (i do this via WebService),
edits this picture (putting some lines, dots, whatever), and than uploads changes to server.
Since 2 part are ready, i have a terrible headache about the lastthing.
The problem is:
I draw primitives using Graphics, since this class don't know how to save the image drawn -
I have to use unmanaged code to save it (BitBlt and stuff).
Everything works ok, if it's standalone application - but i MUST use it as Applet,so there is a SecurityPermision
Exception is raised when i'm trying to do unmanaged code.
I tried to add the signature to the dll (sn -k), but somewhy IE doesn't want to load this applet.
As far as i know, if user adds my DLL's public key to the trusted list - i can do unmanaged code (where he should put it).
So the questions are:
a) How i can save the image with drawn primitives
(actually i need a stream to it, to upload to the server) using managed code
b) How should add sign a dll, to let IE show it
c) How should user add this to his trusted Assemblies list
Here are the source codes:
index.html
<object id="upload1" classid="IEControlv2.dll#IEControlv2.UserControl1" width="800" height="300" style="font-size:12;">
<param name="UserName" value="MyName" />
IEControlv2.cs (windows control)
new SecurityPermission(SecurityPermissionFlag.AllFlags).Assert();
CreateBitmapFromGraphics(gr,1,1,100,100); <---unmanaged code, where exception is raised.
CodeAccessPermission.RevertAssert();
P.s. the .Net is 1.1 version
|
|
|
|
|
The only way to do what you want here without using your unmanaged DLL is to create a Bitmap object and draw to it.
Example:
<br />
private Bitmap bmpCanvas;<br />
<br />
OnLoad(...) { bmpCanvas = new Bitmap(this.ClientSize.Width, this.ClientSize.Height); }<br />
OnResize(...) { bmpCanvas = new Bitmap(this.ClientSize.Width, this.ClientSize.Height); }<br />
<br />
OnDrawRect(...) {<br />
Graphics g = Graphics.FromImage(bmpCanvas);<br />
g.DrawRectangle(...);<br />
g.Dispose();<br />
}<br />
<br />
OnPaint(object sender, PaintEventArgs pe) {<br />
pe.Graphics.DrawImage(bmpCanvas, 0, 0);<br />
}<br />
After this has been implemented you can start streaming fairly easily:
// Pre-Buffer alittle maybe:
MemoryStream stream = new MemoryStream(bmpCanvas.Width * cmpCanvas.Height * 3);
// Stream as PNG (loss-less and has good compression):
bmpCanvas.SaveImage(stream, ImageFormat.Png);
You can then call stream.GetBuffer() and use stream.Length to send the data.
You might want to ensure the user is complete and dispose of the Bitmap to reduce the memory footprint.
|
|
|
|
|
dnewmon, GREAT thanks - your solution killed few another rabbits
I have only one problem - Eraser tool.
So, assuming, i have the Bitmap - with the Transperent background.
I draw on this Bitmap primitives - i want to be able somehow to erase their parts.
Let's say i draw few lines,
DrawLine(pen,1,1,100,100);
DrawLine(pen,10,10,100,100);
and want them to dissapear in the Rectangle(90,90,10,10);
How can i do that?
Is the Bitmap::LockBits method relevant?
great 10x
|
|
|
|
|
I just figured out a way to do this:
<br />
bmpCanvas = new Bitmap(320, 240, PixelFormat.Format32bppArgb);<br />
Graphics g = Graphics.FromImage(bmpCanvas);<br />
g.Clear(Color.White);<br />
g.FillRectangle(new SolidBrush(Color.Red), 0, 0, 200, 200);<br />
g.FillEllipse(new SolidBrush(Color.FromArgb(255, 0, 0, 0)), 0, 0, 200, 200);<br />
g.Dispose();<br />
bmpCanvas.MakeTransparent(Color.FromArgb(255, 0, 0, 0));<br />
The ellipse is an "erased" region and considered transparent.
I tried using Color.Transparent instead of Color.FromArgb(255, 0, 0, 0) but had no luck.
NOTE: The MakeTransparent(...) call has to be made every time you erase a region.
Enjoy,
David
|
|
|
|
|
David, Great thanks for help
|
|
|
|
|
Can anyone tell me the command line arguments to get the J# Redistrubutable to install silently?
I have tried using /q but I still get all the UI prompts for installation.
"#APPPATH\SupportFiles\JSharp\vjredist.exe" /q
Your Help Would be greatly appreciated
Paul
|
|
|
|
|
Can I install .net SDK v2.0.50727 and continue using Visual Studio 2005 Beta 2 IDE ?
|
|
|
|
|
I doubt it. Don't know until you try though!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
predragzakisevic wrote: Can I install .net SDK v2.0.50727 and continue using Visual Studio 2005 Beta 2 IDE ?
No, while trying to install .net SDK v2.0.50727 you get an errormessage.
Just use the Express Edition to try .net 2.0. If you want to develop conplex applications buy the VS05
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
I'm just starting out with VSTO in Excel, and I've run across a small problem. I have two list objects, once of which I want to remain unchangable and one of which I need to be able to edit/modify. In addition, I do not want the user to add anything outside of the two list objects(there will be some labels, but that's it).
In sheet1.cs, I have:
listNotChangable.SetDataBinding()
listChangable.SetDataBindgin()
//that fills the lists.
//I then try
this.Protection.AllowEditRanges.Add("Changable", listChangable.Range, missing);
this.Protect(missing, missing, etc...)
Now, this works. The only cells I can modify are those in the changable range, but I cannot extend that range, and I can also not use any drag/drop or copy/paste features on the sheet, I can only direcly modify individual cells themselves.
So my question is: Is there a separate way to lock everything outside a listbox from being changed, but leave the inside of a listbox as if it were on a new excel spreadsheet, so I can drag/drop, copy ranges, etc.
Any ideas on where to look? I'm using Carter/Lippert's Visual Studio Tools for Office as a reference tool/guide, so pointing me to chapters there(if you have it) will work.
-- modified at 14:01 Friday 2nd December, 2005
|
|
|
|
|
hi ,
i am antony,i am developing a project in vb.net,i need a coding to convert text to speech and how to send the message from one system to another system by finding the ip address,kindly send the coding to finish our project& help us in this regard.
|
|
|
|
|
You lazy SOB. There are a ton of examples in the Microsoft Speech SDK if you have even bothered to look at it and even more with a quick google.
You dont want help, you just want someone to do your work for you. Well, you wont get that here.
If you think my response is a bit blunt why dont you actually read the forums to see
a. How a properly asked question gets a reply
b. Why we get so pissed off with the amount of arseholes like you who just want someone to do it for them.
Jon
|
|
|
|
|
And this is the diplomatic response.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
And, Quite a Nice Diplomatic Reply in that;)
And, That first post also looked a lot like some application form:P
Yuvi Panda T (Simply Yuvi)
|
|
|
|
|
Hello,
On my web server I have Word 2003, and I would like to dynamically generate a Word doc and save it to the server, and return a link to the client so he/she can download it.
However, my cient only has Word 2000, but VSTO requires Word 2003. Once I generate the Word 2003 doc, can I save it as a Word 2000 version, so that older versions of Word on my clients can read it?
Thanks in advance for any feedback, advice and/or help you can give.
Cheers,
Kris.
|
|
|
|
|
Hello,
I'm fairly new to .NET, so please bear with me.
I'm having a little problem with a couple of nested forms and how user input is extracted from them. Currently I have two classes (say, ClassA and ClassB) and two forms (ClassAForm and ClassBForm, for example). ClassA, which has a private instance of ClassB, is a control and is set to display a ClassAForm when clicked. ClassAForm has a button that displays a ClassBForm when clicked. Since ClassBForm was instantiated inside ClassAForm, which in turn was instantiated inside ClassA, ClassA has no access to ClassBForm's data... How would I go about solving this?
|
|
|
|
|
Will chaining a getter work for you?
class ClassA
{
ClassAForm caf;
void SomeMethod()
{
Console.WriteLIne(caf.ValueFromB);
}
}
class ClassAForm
{
ClassBForm cbf;
int ValueFromB
{
get { return cbf.Value; }
}
}
Or you could have a property in ClassAForm that returns ClassBForm itself, but it kindof breaks the encapsulation aspect.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I have an ATL Server Web Service (SOAP & HTTP), using session-state managament per client Session Variables which are COM Objects (VB6 ActiveX dll multi-thread ) casted to Variant(IDispatch) in order to set the Variable. With multiple clients I'm having several thread issues (which I don't have (obviously) using the same management with ASP .NET WebService) and really don't know how thread-safe operations (if that's the case) are made on an ATL Server WebService. So if u have some tips or examples about this type of ATL Server Web Service implementation/use (couldn't find any) let me know.
Thanks
|
|
|
|
|
Hello CodeProject!
when i write larger classes, for example when i add new event handlers (from winforms), properties, and functions over a period of time, its very hard and time consuming to keep the code clean and group all the member variables, constructors, methods, properties together in clear regions. Further, even if i try to keep the grouping i am missing some kind of sorting inside the regions which would be even more time consuming to apply, so i just let it unsorted...
Do you know a hidden feature, or maybe an AddOn or extra tool which would sort your code, for example, put all member variables to the top, then continue with all constructors, and so on, and afterwards, it could sort by access, and/or alphabetically?
Regards,
Thomas
|
|
|
|
|
Hi;
I need to develop a COM Add-Ins for Outlook 2003 with VS .NET 2003.
My current configuration is the target configuration with VS .NET 2003 and Outlook 2003. It works very well !!
Problem is : I need to send my target configuration and transfer the development soluton on a new pc. This new PC is equipped with VS.Net 2003 and Outlook 2002 (and not Outlook 2003).
the .MSI of my add-ins works perfectly. the add-ins also works perfectly on the Outlook 2002.
BUT : I could not generate on that PC. The Microsoft Outlook 11.0 object library (V9.2) is not found.
My question is :
How to set the configuration of this new PC to be able to develop COM Add-ins for Outlook 2003 ?(Is a copy of the library is enough ?)
Many thanks for your help
Frédéric
Frédéric
|
|
|
|
|