Eduardo Lorenzo
Avatar/Signature-
Posts
87 -
Joined
-
Last visited
Eduardo Lorenzo's Achievements
Newbie (1/14)
0
Reputation
-
Hi guys! Am working on an app that has a feature where user will have a broswer to locate certain files. Feature is asking to have a "Preview Pane" much like that used by Vista and W7 Ultimate. My thinking was go the way of the thumbnail. I want to use Shell32 but the namespace (given by intellisense) is System.Design.UnsafeNativeMethods.Shell32 where UnsafeNativeMethods is tagged (with tooltip) that it is inaccessible due to protection. Is there a way to go around this? I also can't find the Shell32 API/DLL that I can reference directly with solution explorer. Also found a few places on the web where they have demo apps but all are too large (in my opinion) to be added to my application as 'just a feature' Any help and response will be appreciated! Thanks in advance!
-
bumping this up. still have no idea except avisynth
-
Hi Guys. Am in the process of creating a small app that stitches videos, but from different file formats. Like, maybe two video clips (one in avi and the other in mpeg) to be stitched into one video in either format. Links, tutorials, samples or any suggestions are most welcome and appreciated no matter how deep or stupid. :D thanks in advance!
-
I did this: public ReadOnlyCollection<Person> GetPersons { get { return peopleOlderThan.AsReadOnly(); } } and am testing right now. Yes PD, the method you posted does supply intellisense but I heeded you warning and didn't use it. I am creating a "faux" data layer so I won't be sure how it will be consumed by other devs so I really want to be on the safe side of this. Thanks soooo much!
-
Hi guys. Am playing around with LinQ here, using VS2008Express. And I have this: private void QueryData() { var peopleOlderThan = from p in people where p.Birthday < DateTime.Parse(textBox1.Text) orderby p.Name ascending select p; dataGridView1.DataSource = new BindingSource(peopleOlderThan, null); } don't mind the part with the combobox. This statement basically gets data from here: people = new List<Person>(); people.Add(new Person("Timmy", DateTime.Parse("1/2/1990"))); people.Add(new Person("Gerald", DateTime.Parse("2/9/1979"))); people.Add(new Person("Brian", DateTime.Parse("12/29/1973"))); This works ok, but I was just wondering if there is a way to expose peopleOlderThan outside of the method? Right now, what I do is put it in a function and return it as IEnumerable. private IEnumerable getList() { var peopleOlderThan = from p in people where p.Birthday < DateTime.Parse(textBox1.Text) orderby p.Name ascending select p; return peopleOlderThan; } all inputs are welcome.
-
Oracle Parameters with ODP.Net
Eduardo Lorenzo replied to cfirex's topic in Database / XML / Reporting
have you tried this? int age=29; string name="Phil"; OracleCommand myComm = new OracleCommand(sql, myConn); myComm.Parameters.Add("age", OracleDbType.Int32,ParameterDirection.Input); myComm.Parameters["age"].Value = age; myComm.Parameters.Add("name", OracleDbType.Varchar2, ParameterDirection.Input); myComm.Parameters["name"].Value = name; int rowsAffected = myComm.ExecuteNonQuery(); -
you might also want to check these links: http://msdn2.microsoft.com/en-us/library/tt0cf3sx(VS.80).aspx http://msdn2.microsoft.com/en-us/library/tt0cf3sx(vs.90).aspx I could not see any differences so your app "should" work. There might be something we have overlooked.
-
maybe this will explain things.
-
That's too bad mate. We will have to wait 12 hours before we can talk again. Well anyways other things you might want to consider are: 1. The dll should be registered in the the correct path from the correct path. 2. This can also be an AuthorizationManager issue.
-
my last post was based on the assumption that the DLL you are calling was properly registered (by running "regsvr32 MapInfo.dll" in the system32-folder) and resides in the correct folder because I saw Interop.MapInfo.dll. You might also want to check the way the DLL is referenced. It might as well be a "file not found" error.
-
sounds like a 64bit app trying to call a 32bit DLL to me. Is your project's build property set to "Any CPU"? Try setting a build to X86.
-
Ok, then that narrows it down to your COM. If not a security or privacy risk, could you post or quote the error message you get?
-
hi Steve, Have you considered a different approach? And if you don't mind, may I reply with a few more questions? 1. What exactly from programX does your program need? I mean, will your program use functions from programX or just the results? If what you need is the data from programX, maybe you can bypass programX entirely and go straight to the datasource. This of course is if programX is not some logging application. 2. Who owns programX? by the way your post is constructed, I am leaning towards the possiblity that programX is from a vendor outside your company? If so, maybe you can coordinate with this vendor?
-
Found it in ScottGu's blog.
-
Hi everyone, it is nice to be back. Again, of course with a question. I am having a problem using AJAX popup extender. I create a panel(to hold all controls), a label(the one to click to popup), another panel(to hold the popup content, a literal(with the popup content), an Ajax popupextender, and assign the values, all on the fly like so: Panel displayPanel1 = new Panel(); displayPanel1.BackColor = System.Drawing.Color.White; displayPanel1.ID = "dispPanel" + myCounter.ToString(); displayPanel1.Controls.Add(hc); AjaxControlToolkit.PopupControlExtender myPop = new AjaxControlToolkit.PopupControlExtender(); myPop.TargetControlID = desclabel.ID; myPop.PopupControlID = displayPanel1.ID; myPop.ID = "pop" + myCounter.ToString(); detailsPanel.Controls.Add(myPop); detailsPanel.Controls.Add(displayPanel1); hc is the literal, there is nothing wrong there. displaypanel is the main panel instantiated also by code. what happens here is when the page renders, displayPanel1 is already visible! And when I click on the label, it "pops" up to its correct place. and when I click anywhere else on the page, it dissapears and then starts to function properly (as a popup should). I tried setting the visibility property of detailsPanel1 to false but it does not work. All help will be greatly appreciated. Thanks in advance.