|
Thanks for the article. I'll be sure to read it later!
It's an OO world.
|
|
|
|
|
Its a simple design pattern named as "Facade"
There are low level functions available in an API, but you might need to expose simpler interfaces to your "common" users; those who need very generic functionality. For specific cases, the users may take the pain of going deeper, but 95% of time, its not required.
Hence wrapping an intricate functionality into a simple API (the target of Facade design pattern) provides both common as well as specific users the level of functionality desired by them.
OOPS has lots to learn, and the more experience you get, the deeper you can think. Its good you want to get into design in 6 months and you would sure grow up to a happy professional Cheers
(BTW: include design patterns in your quest, they would tell u a lot how things are designed)
|
|
|
|
|
Thanks for your reply.
Actually this topic is already a few weeks old. I have read up on various OOD principles and design patterns and it already helps me in day to day coding. I have not looked into the Facade Pattern a lot yet, but I will certainly do so. The problem with this pattern for me is where do you keep the line between abstract and real implementation. It seems really hard to make a Facade Class 'Closed for Modification, but Open for Extension.'
It's an OO world.
|
|
|
|
|
how to access share without mapping in code behind (windows apps)?
|
|
|
|
|
A unc path? Is this a trick question?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
In gridview if one click means to go one page another row click means it need to go another page like gmailo inbox. am new to .net. Am interst to do this i can't get any idea. plz help le
|
|
|
|
|
1) You must have asked this in ASP.Net forum as this does not pertain to framework.
2) As in GMail, the click on row (mail header), it dynamically loads the contents of mail, relating to that header. I believe that original page is still there in behind.
This can be achieved using Ajax.
You just need to try hands on Grid view first, then Ajax.
|
|
|
|
|
Try something and then post some code here - someone might be able to help you.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
|
|
|
|
|
I need to read/write files(win apps)to a shared drive (network) with a specific user and pass.
How do I do this. I am using .net 2.0
|
|
|
|
|
|
so what you proposed is this simular to this?
If UNCPath.EndsWith("\") Then<br />
<br />
UNCPath = UNCPath.Remove(UNCPath.Length - 1, 1)<br />
<br />
End If<br />
<br />
<br />
Dim nr As NETRESOURCE<br />
<br />
Dim strUsername As String<br />
<br />
Dim strPassword As String<br />
<br />
<br />
<br />
nr = New NETRESOURCE<br />
<br />
nr.lpRemoteName = UNCPath<br />
<br />
nr.lpLocalName = DriveLetter & ":"<br />
<br />
strUsername = My.Settings.ServiceID<br />
<br />
strPassword = My.Settings.ServiceIDPassword<br />
<br />
nr.dwType = RESOURCETYPE_DISK<br />
<br />
<br />
<br />
Dim result As Integer<br />
<br />
result = WNetAddConnection2(nr, strPassword, strUsername, 0)....
|
|
|
|
|
Inside IE when an ActiveX COM is being loaded a yellow bar pops up at the top asking you to allow the application to run. Is it possible in VB.net or Csharp to invoke the activex component to ask the user to allow over again. Mainly because we have users who's plugins aren't working correctly and we want to try to reload them when they access a link or a page?
|
|
|
|
|
|
Hi All,
To deploy .net dll there is requirement of .net framework ? if yes then how can we mange please elobrate it in details .
thanks in advance.
ashu
|
|
|
|
|
SharmaAshutosh wrote: To deploy .net dll there is requirement of .net framework ?
Yes.
SharmaAshutosh wrote: if yes then how can we mange please elobrate it in details .
Add the prerequisite to your installation package.
I must get a clever new signature for 2011.
|
|
|
|
|
Richard MacCutchan wrote: Add the prerequisite to your installation package
Woa - easy on the details. You may want to break that down into smaller more manageable chunks (and then potentially sub-chunks)
Illogical thoughts make me ill
|
|
|
|
|
There is no shortage of information on the internet about this subject, I have no intention of duplicating what is already available.
I must get a clever new signature for 2011.
|
|
|
|
|
Yes, the framework provides the libraries and runtime environment for the dll to run.
When you create the setup project in visual studio, you can add a condition to check on the target machine.
In this, add a condition mentioning that the required version of .net framework is installed; providing a location on MS site to get it if its not already installed.
However, in most cases, you can expect it to be installed either by default or as part of some service packs
Windows XP SP3 will have .net 3.0 installed
Windows Vista comes with 2.0 pre-installed; SP will install further
Windows 7 comes with 3.5 pre-installed
|
|
|
|
|
Hi,
Here is a situation.
I need to perform long operation in UI thread. I must do it in UI thread, cause algorithm uses 3rdparty resources managed by UI thread. And these resources are not thread safe. So, I do it in UI thread. Because operation is very long I would like to not block the application. What I want is:
1) Interrupt algorithm execution. Store some message in message queue that algorithm must be resolved.
2) Application process all pending events in the queue (key eents, mouse events, draw events etc).
3) I get the the control again in some my handler. (All in the same thread)
Similar to what I would do with PostMessage. Like a System::Windows::Forms::Timer with 0 interval (which is not allowed).
How can I do that?
And here is another detail: I'm doing all this NOT from UI control class. In fact I do it in static member function. But I'm in main(UI) thread.
Thanks.
///////////////////////////////////////////////////////////////////////////////
Found a resolution.
System::Windows::Threading::Dispatcher class does exactly what I need. And it doesnt require a UI control (like COntrol::BeginInvoke).
Works perfect.
Theme closed.
modified on Wednesday, February 23, 2011 8:47 AM
|
|
|
|
|
progDes wrote: I must do it in UI thread, cause algorithm uses 3rdparty resources managed by UI thread. And these resources are not thread safe. So, I do it in UI thread
There may be a way, but apparently there's no will.
More information would be helpful.
|
|
|
|
|
Could you open a new non-visible window and do it there?
"You get that on the big jobs."
|
|
|
|
|
If this window will be in the same thread as main UI thread (which is requirement) - it will block application anyway.
|
|
|
|
|
Ok, I didn't realise it had to be in the main UI thread. If you can host the 3rd party resources in a separate UI thread, you may find an answer here
"You get that on the big jobs."
|
|
|
|
|
No I cant.
Found a resolution.
System::Windows::Threading::Dispatcher class does exactly what I need. And it doesnt require a UI control (like COntrol::BeginInvoke).
Woeks perfect.
|
|
|
|