Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

Ibana

@Ibana
About
Posts
28
Topics
16
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Xpath expression
    I Ibana

    Hi it was the and operator that I was looking for, didn't knew that you could combine multiple conditions. Thanks for your help! :-D

    XML / XSL xml csharp help question

  • Xpath expression
    I Ibana

    I would like to add the codValue attribut from the concept node. Bi Diameter

    XML / XSL xml csharp help question

  • Xpath expression
    I Ibana

    oopps. I forgot to ignore html..Example code.. MeasureGroup Bi Diameter 4.9 Bi Diameter 5.1 Bi Diameter Mean 5.0 MeasureGroup ADH length 2.2 ADH length 2.4 ADH length Mean 2.3

    XML / XSL xml csharp help question

  • Xpath expression
    I Ibana

    Hi, Thanks alot for your help I have been away a while but It I have tried your suggestion below and it extracts the mean value. /item/item[item/value[@codValue='R-00317']]/value I still have a small problem though. With your suggestion I also extract the other measurements mean value (see example below) I have tried to “tune” my search using your example, but I don’t get the hang of it, I need to somehow check two different attributes both and instead of just one as before. Is it possible to do that in one expression? Example code.. MeasureGroup Bi Diameter 4.9 Bi Diameter 5.1 Bi Diameter Mean 5.0 MeasureGroup ADH length 2.2 ADH length 2.4 ADH length Mean 2.3

    XML / XSL xml csharp help question

  • Xpath
    I Ibana

    Hi, Im quite new to xpath in .Net. I have an XML-structure shown below that contain measurements(diameters,areas etc) The one below includes two different measurements of an Bi diameter and also the mean value. I now want to extract the mean value.(the 5.0 tag. As mentioned ,the file consists of many different measurements using the same strucutre. With the following expression I manage to extract the value but then I also get all the following mean values from all of the other calculations. How do I extract ONLY that node. I would really appriciate some help thanks! Expression: //item/item/concept[@codValue='11820-8']/following-sibling::item/value[@codValue='R-00317']/following::value MeasureGroup Bi Diameter 4.9 Bi Diameter 5.1 Bi Diameter Mean 5.0

    .NET (Core and Framework) xml csharp help question

  • Xpath expression
    I Ibana

    Hi, Im quite new to xpath in .Net. I have an XML-structure shown below that contain measurements(diameters,areas etc) The one below includes two different measurements of an Bi diameter and also the mean value. I now want to extract the mean value.(the 5.0 tag. As mentioned ,the file consists of many different measurements using the same strucutre. With the following expression I manage to extract the value but then I also get all the following mean values from all of the other calculations. How do I extract ONLY that node. I would really appriciate some help thanks! Expression: //item/item/concept[@codValue='11820-8']/following-sibling::item/value[@codValue='R-00317']/following::value MeasureGroup Bi Diameter 4.9 Bi Diameter 5.1 Bi Diameter Mean 5.0

    XML / XSL xml csharp help question

  • extract data from "dynamic" XML-files
    I Ibana

    Hi, Hi! I’m writing an application that reads XML files that are auto generated form another application called Xapp. My application is supposed to extract certain data from the generated XML files. Lets say that I need to extract the values from a number of caluclations done by Xapp called A and C in the example below.The calculations that aren't measured wont be listed so the files will variate quite much. A won't be present if its not calculated. What is the best and most dynamic way of extracting the data? I found the xmlreader abit to static. Is Xpath the right way? I’m developing in .Net 2.0 (very simplified example ) Calculations A 4.9 B 1.0 C 2.0 Many Thanks /Ibana

    XML / XSL xml question csharp tutorial

  • Problem with ButtonEvents on dynamic UserContols
    I Ibana

    Thanks for the reply and detailed answer e-laj! I have been away for a couple of days so I havn't been able to reply until now. Anyway I have made some progress: 1. I load the controls in Page_Load and assign them unique ids within not PagePostBack. 2. I put the control into the viewstate (to load when page is post back) The events wont fire the first time but the second time they do. It still seems to be something wiht the lifecycle. Could you explain some more about the TrackViewState? if(!Page.IsPostBack) { RequestDataFromPostMessage(); Domain [] domainCollection = GetInformationFromWebSevice() _//Length=How many usercontrols to create_ domains=domainCollection.Length; ViewState["domains"]=domains; DomainControls = new DomainControl[domains]; for(int i=0;i domains;i++) { DomainControls[i]=(DomainControl)LoadControl "DomainControl.ascx"); _//Init the usercontrols within the specific usercontrols, the controls actually raising the events_ DomainControls[i].InitSubDomainData(.......); _//unique ID_ DomainControls[i].ID=i.ToString(); Session["DomainControl"+i.ToString()]=(Control)DomainControls[i]; placeHolder1.Controls.Add(DomainControls[i]); } } _//if post back_ else { domains = (int)ViewState["domains"]; DomainControl dControl = new DomainControl(); for(int i=0;i The debugger crahses in the Onclick event method in the usercontrol while debugging. `protected void Open_Click(object sender, System.EventArgs e) { ....do something }` Any suggestions? Thanks!

    ASP.NET help question database debugging

  • Problem with ButtonEvents on dynamic UserContols
    I Ibana

    Hello There! I have a usercontrol named A that displays data from a database. I create a dynamic number of usercontrols depending on the number of hits from the database given a certain critera. If I receive 4 datasets from the database I create 4 usercontrols and so on… These Usercontrols contains repeater objects displaying the data aswell as a button that interact with the data. Im now experiencing some major problems to get these buttons to fire once pressed. I do believe I have done it the right way. Usercontrol A 1. Initialize 2. declare Click method private void InitializeComponent() { this.OpenButton.Click += new System.EventHandler(this.Open_Click); this.Load += new System.EventHandler(this.Page_Load); } protected void OpenButton_Click(object sender, System.EventArgs e) { //Log activity } It works perfect using static usercontrols, but not in this dynamic case. It wont even enter the OpenButton_click method in debug mode. Is the EventHandler passing the event to the main app or what is happening.?!? Nothing what so ever happens.. Please help me Experts-Number-One, you are my only hope…. /Peter

    ASP.NET help question database debugging

  • access winapi on local client
    I Ibana

    but not really... I want to shutdown admin tool A if the user wants to use start tool B from the webapp.

    ASP.NET csharp asp-net question

  • access winapi on local client
    I Ibana

    Hi, I have a asp.net/C# webapplication (obviously running on a webserver) that needs to access the winapi of the local machine using the webapp. I want to shutdown a local software on the client from the the browser running the webapp. Should I build a small app that uses the findwindow sendmessage etc and lanuch it from the webapp. Or how could I access the winapi of the local machine ? many thanks, Ibana

    ASP.NET csharp asp-net question

  • Use sendMessage and Findwindow with VBscript
    I Ibana

    thanks for your replay, Do you have any suggestion how to access the winapi on the local machine from my asp.net/C# application running on a server. I need to use the winapi to shutdown a local installed software. Should a make a small app that runs on the local machine that calls the winapi? Are there any better solutions? /ibana

    Visual Basic csharp asp-net question

  • Use sendMessage and Findwindow with VBscript
    I Ibana

    Hi, I have an web application running on a applicationserver. Now I want to shutdown local software on the client from the browser. I use asp.net but I realized I needed av VBscript to execute on the local client to be able to get a handle for the local applicaition that I want to shutdown. But how do I use the WINAPI methods sendMessage and findWindow in VBscript. I know I have to import user32.dll. Im really bad at scripting...) THANKS! Ibana

    Visual Basic csharp asp-net question

  • shutdown external application
    I Ibana

    Hi, I have a problem where I want to shutdown an external win32 software client from my C#/ASP.net application by pressing a button. I understand that I have to use WM_CLOSE somehow but I dont know how to use it in my C# solution. I use shelling (VBscript) to lanuch external software on my computer: Example: function() ... objShell.run ("""C:\Program Files\Overview\Overview.exe""- u testuser - p testuser endfunction() This works great but if the application( in this case overview.exe) is already running I want to be able to shut it down by pressing a button before I lanuch it . Please help! /Ibana

    ASP.NET csharp help tutorial asp-net

  • shutdown external win32 application
    I Ibana

    Hi, I have a problem where I want to shutdown an external win32 software client from my C#/ASP.net application by pressing a button. I understand that I have to use WM_CLOSE somehow but I dont know how to use it in my C# solution. I use shelling (VBscript) to lanuch external software on my computer: Example: function() ... objShell.run ("""C:\Program Files\Overview\Overview.exe""- u testuser - p testuser endfunction() This works great but if the application( in this case overview.exe) is already running I want to be able to shut it down by pressing a button before I lanuch it . Please help! /Ibana

    C# csharp help tutorial asp-net

  • Help needed in MFC
    I Ibana

    Hi, Thanks for your quick replys, to bad that I didn't notice until now:) I will try both of the tips that has been suggested. Niklas you suggested that I should do a deepcopy, I suppose you mean create a new, strcpy, and then pass it, then delete it. I realized that the buffer that the m_Modefreq points to will be destroyed but how come the other passing of data works.If you remember from my first thread I converted an CString str and passed it to a const char * m_Vectorname. Shouldn't that pointer also be corrupted as the other one since it points to a buffer that is being destroyed when it exists the metohd? //get the selected string from the dropdown. CString str; m_DropDown.GetLBText( idx,str); const TCHAR *ptr; ptr = str; //update the first view member const char *m_Vectorname //works fine m_pView->m_Vectorname=(LPCTSTR)str;

    C / C++ / MFC help c++ database tutorial announcement

  • Help needed in MFC
    I Ibana

    Hello, I have a problem where I want to update two varibales in my View class through a dialog class CModalmodeDlg. When I press the "OK" button in the dialog I want two separate const char * members to be updated. The first case is when I select a Cstring from a dropdown and sends it to a const char * member (m_Vectorname) in the view class. That works great,but It doesnt work for the secondview member (m_Modefreq). When a try to display m_Modefreq in the view class it gets all corrupted. But it gets it right when I display it in a messagebox through the dialog. example. m_Modefreq in messagebox= "45.23 Hz" m_Modefreq in ViewClass = "^''*´" Another observation is that when I in the dialogs OnBnClickedOk() set the second variable (m_Modefreq) to always be the same static value it displays it correct in the view. below is a code snibbet, [code] void CModalmodeDlg::OnBnClickedOk() { //get the active view CFrameWnd* wnd = (CFrameWnd*) AfxGetMainWnd(); if(wnd) m_pView = (CVtkSDIView*) wnd->GetActiveView(); //get the selected string from the dropdown. CString str; m_DropDown.GetLBText( idx,str); const TCHAR *ptr; ptr = str; //update the first view member const char *m_Vectorname //works fine m_pView->m_Vectorname=(LPCTSTR)str; int idx = m_DropDown2.GetCurSel(); m_pView->m_Modeindex=idx; //the method ReturnMode returns a string depending on which index is selected //from the DropDown. Currentstring =m_pView->ReturnMode(idx); //Here I want the other const char * member (m_Modefreq) to be updated. //it prints out the right in a messagebox but as soon as I try to display it in the view //class it gets all corrupted. m_pView->m_Modefreq=Currentstring.c_str(); [/code] When I set it to a static value [code] like this: m_pView->m_Modefreq="45.2 Hz" it manage to update it right. [/code] I dont really know what to do about this, please letme know if you have any ideas! Regards Peter

    C / C++ / MFC help c++ database tutorial announcement

  • Help! need some tutorials on dialogs in an NONE dialog based application
    I Ibana

    Hi there, I have tried to get a dialog to transfer data from a combobox into the view class member but I havent been able to get it to work get crashes. All I want is a tutorial on how to change som variables in a dialog that effects the members of the view class. This must be a ordinary thing that must want to achive. Every windows program has dialogs to set alot of options etc. Hope you got something for me!.) regards Peter

    C / C++ / MFC tutorial help

  • crashes when I pass data from dialog to View, Need help!
    I Ibana

    :(Hi there! I have MFC app (doc/view). In that app I have a dialog with a combobox from which I want to transfer a selected item back to the main View Class where I have a VTK(Visualization toolkit) window. basically Selecting an item in the combobox should affect the object that Im displaying in my main View when I execute my application and select the "Dialog" and select a string in the combobox it crashes and points at the member in the View class that I want to change. Below is the code where I change a variable in the View method SetScalars. I was wondering if it had to do with that my dialog is modal so that it cant overwrite my view class members , because that seems to be the problem. John, that line "alot of functions and members.... " are just VTK (vizualization toolkit) stuff. [CODE] void CStressesDialog::OnDropDownSelchange() { int idx = m_DropDown.GetCurSel(); if( idx < 0 ) return; CWnd* pParent = GetParent(); CVtkSDIView* pView = (CVtkSDIView*)pParent; pView = (CVtkSDIView*)pParent; CString str; m_DropDown.GetLBText( idx,str ); pView->SetScalars(str); } [/CODE] This is what causes the crash somehow this->str_select = s; where str_select is an Cstring. [CODE] void CVtkSDIView::SetScalars(CString s) { this->str_select = s; //VTK STUFF IN THIS FUNCTION.. this->filereader->SetScalarsName(str_select); this->filereader->Update(); this->lut->SetTableRange(this->filereader->GetOutput()->GetScalarRange()); this->lut->Build(); this->band->GenerateValues(15,this->filereader->GetOutput()->GetScalarRange()); this->band->Update(); this->pMapper->SetScalarRange(this->filereader->GetOutput()->GetScalarRange()); this->pMapper->Update(); this->renWin->Render(); this->iren->Start(); } [/CODE] Thanks for your help! /regards peter

    C / C++ / MFC help c++ announcement

  • Access members from a dialog to the Viewframe
    I Ibana

    Hi there all experts! I have an app where I want to access a string that is being set in a Dialog. I use MFC and the Doc/View structure. I now want to be able to pass it on to the View class but I havent been able to do so. The Dialog is an own class that I have included into my CvtkSDIApp.cpp file where all the others Doc/View/Frame are included. Look below to see .. #include "MainFrm.h" #include "vtkSDIDoc.h" #include "vtkSDIView.h" #include "StressesDlg.h" ... I access the dialog from the mainframe I have tried to add an getView function in my StressesDlg class to be able to get hold of the view string member that I want to use. // CStressesDlg dialog //forward declaration class CvtkSDIView; class CStressesDlg : public CDialog { public: CStressesDlg(CWnd* pParent = NULL); // standard constructor virtual ~CStressesDlg(); CVtkSDIView * GetView(); private: CVtkSDIView * GetView; }; // and In my implementaion file CVtkSDIView * CStressesDlg::GetView() { return View; } // it doesnt like this at all it doesnt recongiazie my view (CVtkSDIView) as a class. //I have tired with and without forward declaration of the CVtkSDIView class in the dialog class as you can see above. Regards, peter

    C / C++ / MFC c++
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups