|
Thanks for your response , I solved the problem by allowing sole security features.
|
|
|
|
|
Hi there,
I'm developing a project that will be released as a DLL. I want to offer an API, where the user can hook into some working process of my program.
Example:
In a function "sendMail", an object of type Mail will be initialized and send.
Now, before I send this Mail-Object, I want to give the user the possibility to write own code in an own project, that extends my API and manipulate the Mail-Object, before it is send through my API.
You get an idea of what I want to do in this video (3:16):
https://www.youtube.com/watch?v=Qp3SMrD4bjc#t=199[^]
The API offers a class RenderTask, that can be inherit by your own class, overwriting a Method ProcessPreRender.
Just by overwriting it, the new code will be executed in the API. I have no idea how to implement a Class in my project before I actually know if it really exists.
Hope I explain my problem right and you got an idea of it.
Maybe this is a standard-scenario in c# OOP, but I didn't find any kind of example.
So I hope you can help me out.
Greetings -
Tom
|
|
|
|
|
That means that the user of your API has to tell somewhere which RenderTask object to use, e.g. in the constructor of the class which contains the sendMail function. But that object will need some references to other objects of your code, mainly the mail object. You have to set those references in your code. And before you send your mail, just do if (_RenderTask!=null){_RenderTask.ProcessPreRender();}
If it is just one function where that class is to be used, I'd prefer an event (with the mail object being passed via the EventArgs) instead of overwriting a specific base class.
|
|
|
|
|
So I have a class like so:
public class foo
{
int Code {get;set;}
String Meaning {get;set;}
}
And I want to be able to map an integer type onto the Code property of this class:
int someNumber = 10;
foo someFoo = new foo();
AutoMapper.Mapper.Map<int, foo>(someNumber, someFoo);
I've tried a few different things but haven't gotten it to work. Any suggestions, please ?
|
|
|
|
|
Try mapping to a property instead of a local variable
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hello all
I recently heard about Microsoft's move toward open-source technology by open-sourcing its .NET compiler through project Roslyn. The question is what is the reason behind such a big move? and also the availability of the compiler source free to everyone ?
|
|
|
|
|
It's a sensible move on Microsoft's part. Some of the reasoning behind it is allueded to in this[^] interview.
|
|
|
|
|
hi ..everyone !!..how to show profile information in a particular page using c#,sql and asp.net using visual studio 2008
Krishnendu
|
|
|
|
|
|
You can put user detail information in a dashboard page. Have you done to input user details page?
Sankarsan Parida
|
|
|
|
|
Hello akramKamal I have used your youtube video downloader from codeproject.If now I want to design some thing like this which books and dll files I have to read.If here any expert please answer . <a href="/Members/akramKamal">@akramKamal</a>
-- modified 13-Apr-14 1:38am.
|
|
|
|
|
If you are referring to YouTube Downloader Using C# .NET[^] then you should post a message at that tip's message forum (scroll all the way to the bottom) so that he will get a notification. Posting this here relies on him just happening by and seeing it.
|
|
|
|
|
Please describe, I do not understand your answer.
|
|
|
|
|
He is telling you that you posted your question in the wring place. There's very little chance that the author will see your question here, but he will be sent an email if you post on his article instead.
|
|
|
|
|
hi guru of dotnet!
I'm a poor beginner in dotnet (and in english language too ) but I've a question for you:
I'm coming from a complete rewrite of my VBA code with wich I wrote a time control about use of PC for my son & daugther (they have to be limited to 2 hours per day!) in which I've inserted two global Keyboard and Mouse hooks using Window's API to check if some user activity is in progress to restart countdown or shutdown system. The VBA code works fine in both my Win7 x32 & x64 machines but I'm not able to code the correct hooks in vb.net: it works well in the x32 one but in x64 mouse hook stops to work after a short time! (in the Web I read the OS stops the hook based on timeout of 300/500 Msecs (my timer is 1000 msecs) and that the injection of dll32 in 64 bit code has a lot of problems... I'm reading now about a Row Input system to free OS from hooks but I'm not able to knowledge anythink about!!! So the question is: can I have a vb.net example to perform both traps for a keypressed from keyboard AND a Mouse move (not interested on which key was pressed and so on...) to know date&time of that event to handle them by my code?
Thanking in advantage for any help you'll give to me, send my best regards.
Maurizio, Italy
|
|
|
|
|
Hallo guys
Success!
Finally I've found a code that works fine in both systems, so I don't need more reply for that question.
M
|
|
|
|
|
Hi,
Can you post your code in VB.net for me to study more? Thanks,
Nhan
|
|
|
|
|
how to convert excel template to tempate XML? and XML to excel?
|
|
|
|
|
What do you mean with "template XML"? Can you show an example?
Change the extension of the excel-file to "zip", and unzip it. Did you mean those XML files?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
You can use this code block to save excel template to xml template
ActiveWorkbook.SaveAs Filename:="C:\Users\DELVIN\Desktop\B323ook1.xml", _
FileFormat:=xlXMLSpreadsheet, ReadOnlyRecommended:=False, CreateBackup:= _
False
|
|
|
|
|
done
modified 10-Apr-14 16:24pm.
|
|
|
|
|
Sorry, but this is not a site to hire someone on.
Try vWorker.com. Warning! You get what you pay for.
|
|
|
|
|
|
This it's not a site to hire someone. How much more direct can i be? n
|
|
|
|
|
There is a big difference between helping you and doing it for you. You are asking someone to create a program for you, for which you would need to go to a site that you can advertise for a programmer and then hire someone to write this code for you. CodeProject is not such a site.
If you had a specific problem with some code that you had written, then we could probably help.
|
|
|
|