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
G

glitteringsound

@glitteringsound
About
Posts
102
Topics
55
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ASP.NET MVC How to implement timer functionality to update dock panels on client side respective to their time intervals?
    G glitteringsound

    I have encountered a problem of updating dock panels on client side ( browser ). After time interval elapses, I have to send callback to update the contents of dock panel. Each and every dock panel can have own respective time interval that can be set/reset by the user by interacting it's settings module. Thus we can have something like dock panel_a : update after 10s dock panel_b : update after 5s dock panel_c : update after 15s ............................... later on user might can change all the timers and these module might update totally on different intervals. I might be ended up having 100's of dock panels and correspondingly 70's would update their contents and 30 might never update Or 30 would update and 70 would be set to Never update. What would be right implementation?? Should I write complete server side functionality ( in this case, I would write delegates or complete asynchronous implementation for updating all modules available on client side )?? Should I maintain a list of available panels at client side and need to access that list for sending callback once the time interval elapse for specific dock panel? If so, I would definitely need a parent timer available on client browser window which would count the seconds and on completion of seconds, it will match and refer the previously maintain list. If so, List might contain 50 panels corresponding 50 timer objects.. Would that be fine? Note: I am more in a favour of implementing server side code ( delegates and asynchronous ) because my server side better knows how many dock panels rendered on screen and for each dock panel it can maintain thread to update dock panel on client side. what should be the right way? Regards Usman

    ASP.NET asp-net csharp sysadmin regex architecture

  • Window Service installed but EndPointNotFoundException was caught
    G glitteringsound

    Dear All, I am struggling to get out from this exception. I don't know why it is thrown always. My service( server) installed correctly from insaller and it is running in the background. But server has exposed the end points in a way:

    But as soon as I send test data after opening the service, to the very first end point exposed by server. it throws the following exception There was no at net.tcp://localhost:8732/PlcInputService a listening endpoint available that could accept the message. This is often caused by an incorrect address or SOAP action. For more details, see "InnerException", if any. while my app.config for this service is :

    bindings.config containing the binding for server and services.config containing the same endpoints which i mentioned above. I have no idea why it is occuring and how to get around from it. Regards Usman

    WCF and WF wcf wpf sysadmin xml tutorial

  • Unable to update DoDataExchange method : VS 2000 Project converted to Visual Studio 2008 or VS 2010
    G glitteringsound

    Thanks Albert. As you pointed out and I realized that I placed and written the code of another OnInitDialog.. It was main dialog's control of whole I was trying to manipulate of another dialog's code. Thanks

    C / C++ / MFC visual-studio help csharp announcement

  • Unable to update DoDataExchange method : VS 2000 Project converted to Visual Studio 2008 or VS 2010
    G glitteringsound

    Unfortunately adding it by hand also didn't work at all. See the problem: It crashes now inside DDX_Control(pDX, IDC_EDIT_Address, MacAddressEditCtrl ); where IDC_EDIT_Address is the id and MAcAddressEditctrl is CWnd object. oid AFXAPI DDX_Control(CDataExchange* pDX, int nIDC, CWnd& rControl) { if ((rControl.m_hWnd == NULL) && (rControl.GetControlUnknown() == NULL)) // not subclassed yet { ASSERT(!pDX->m_bSaveAndValidate); pDX->PrepareCtrl(nIDC); ////it crashes here...and inside it int the long run inside of code somehere..it calls GetOleControlSite() and there it is observed that m_pCtrlCont is NULL. HWND hWndCtrl; pDX->m_pDlgWnd->GetDlgItem(nIDC, &hWndCtrl); if ((hWndCtrl != NULL) && !rControl.SubclassWindow(hWndCtrl)) { ASSERT(FALSE); // possibly trying to subclass twice? AfxThrowNotSupportedException(); } ifndef _AFX_NO_OCC_SUPPORT else { if (hWndCtrl == NULL) { if (pDX->m_pDlgWnd->GetOleControlSite(nIDC) != NULL) { rControl.AttachControlSite(pDX->m_pDlgWnd, nIDC); } } else { // If the control has reparented itself (e.g., invisible control), // make sure that the CWnd gets properly wired to its control site. if (pDX->m_pDlgWnd->m_hWnd != ::GetParent(rControl.m_hWnd)) rControl.AttachControlSite(pDX->m_pDlgWnd); } } endif //!_AFX_NO_OCC_SUPPORT } }

    C / C++ / MFC visual-studio help csharp announcement

  • Unable to update DoDataExchange method : VS 2000 Project converted to Visual Studio 2008 or VS 2010
    G glitteringsound

    Hi, I am having a problem. I have a project "MicroSIP" which is used for SIP based call voice over IP. I am running it into VS 2010 and I need to customize it according to my need. For this as soon as I edit the main dialog ( Dialer ) and add some other controls ( like edit control of CEdit) and add member variable for from wizard of "Add Variable", it shows the message "unable to update DoDataExchange method". More over if getting reference of newly placed "Edit Control" in the program , it has NULL pointer or undefined reference. Anybody having any idea about this to resolve or some way around to resolve the issue. I am having extremely trouble for solving this scanario. Regards Usman Khalil

    C / C++ / MFC visual-studio help csharp announcement

  • How to pass multiple Html.DropDownList selected values from View( .aspx ) to MVC controller's action?
    G glitteringsound

    I need to pass multiple data ( probably 2 Html.DropDownList's selected values ) to MVC controller action method from MVC View ( .aspx). I think it would be from somehow Html.Hidden form , but how?

    I am unable to get the selected value from Html.DropDownList and pass it as Html.Hidden("paramName", MvcStringSelectedValue) to controller's action.

    My Code is :

        <%: Html.DropDownList("Semester")%>
        <%= Html.Hidden("strSemesterToOrganize", returnedValueFromAbove)%>
    
        based on<br />
    
        <%: Html.DropDownList("Semester")%>
        <%= Html.Hidden("strSemesterToBaseOn",returnedValueFromAbove)%>
    
        <%: Html.ValidationSummary(true) %>
        <input type="submit" value="Clone" />
    
    <% } %>
    

    <br/><br/>
    Do I need to write the input tag of "submitt" 2 times or just only once?

    Regards Usman

    ASP.NET html asp-net architecture tutorial question

  • How and which technology (.NET-WinForms,C++-MIDI MFC based) is the best to use for reading and writing COM Port data?
    G glitteringsound

    I need to solve a problem for reading and writing COM Port data from MIDI application. 1)The software must be able to handle multiple MIDI In and MIDI Out ports simultaneously sending and receiving MIDI data without choking off performance for the application (this will include audio as well). I am using a modified version of the old Mabry MIDIIO already, MFC COM server in a shared .dll, written in c++. It is currently be compiled down into an .ocx and requires COM registration. It is working in the Visual Studio 2008 environment But A total rewrite or different solution is a viable option but of course with the fastest, most inexpensive and easiest to maintain solution. Here are the questions: 1)What direction would you recommend COM control or .net control, .dll, multi-thread, something else and why? If anybody having idea about MABRY Control, Do you think the Mabry control could be reworked into my new solution or would it be better to just take a totally different direction? 2)What is the recommendation? an unmanaged or managed solution? Regards Usman

    Managed C++/CLI csharp c++ question visual-studio winforms

  • Need to SendMesssage to controls placed on some remote .NET managed processes from some simulator's process.
    G glitteringsound

    I am in the end way of solving hooked process and related problem. I have extracted the controls some how of other managed processes and simulate those controls on the some other seperate process. Now after somehow drawn those controls on other processes exactly on those position at which they were inside the original processes, I want to send input to those actual processes , which do occur on the simulator process'es simulated controls. So that If somehow the simulator's control (e.g Button) recieve "click" , it should transfer to actual process button control's event handler Let say I have managed process(TestProcess-A) having several controls (e.g Buttons,TextBox,TextAreas,Grids) and I have transferred all the properties associated with each controls to some other remote process (let say Simulator Process B) and drawn these controls exactly at the same position where it was in actual process after reading these properties. I want now, if some how the click occured on these simulated controls, it must flown towards actual controls drawn on actual process. i.e if some SIMULATED Button recieve click on Simulator's process, it should occurred and on the actual process (Test Process A)'s actual Button. So that if some functionality written in that buttons's event handler, it should be executed after there in actual process (Test Process-A). Note: I am developing .NET automated testing framework, for that I need to automate all managed processes those having GUIs.

    Windows Forms csharp ai-testing testing beta-testing help

  • Why Control.FromHandle(IntPtr) returns null in one hooked process and returns valid object of “Form”? in another hooked process?
    G glitteringsound

    I am facing a problem related to get out all the controls from some hooked process. My SpyDll launched into hooked process sucessfully, But when I check the statement Control control = Control.FromHandle(MainWindowHandle), it returns null into control object where "MainWindowhandle"is just a native main window handle of that hooked process, which you always take from .NET "Process" class after launching that process. But STRANGLY it happens that in some other hooked process which is the same C# .NET application, it returns valid object of Main "WinForm". So why it will not work in above case? Are there any exceptions to use "MainWindowHandle" properly. In my case both are seperate .NET managed processes programmed in C#. Any process configuration needs to maintain specially while creating that process? Regards Usman

    C# csharp c++ help question workspace

  • Why Control.FromHandle(IntPtr) returns null in one hooked process and returns valid object of “Form”? in another hooked process?
    G glitteringsound

    I am facing a problem related to get out all the controls from some hooked process. My SpyDll launched into hooked process sucessfully, But when I check the statement Control control = Control.FromHandle(MainWindowHandle), it returns null into control object where "MainWindowhandle"is just a native main window handle of that hooked process, which you always take from .NET "Process" class after launching that process. But STRANGLY it happens that in some other hooked process which is the same C# .NET application, it returns valid object of Main "WinForm". So why it will not work in above case? Are there any exceptions to use "MainWindowHandle" properly. In my case both are seperate .NET managed processes programmed in C#. Any process configuration needs to maintain specially while creating that process? Regards Usman

    Windows Forms csharp c++ help question workspace

  • Needs to update WinForm (seperate process) to render newly created customized controls
    G glitteringsound

    Its inter-process communication. Thread which actually launches the WinForm process is in seperate process and runs independently the execution of WinForm process. But it just launches it and dispatches the custom object to it that's it. Now inside the WinForm process , when object dispatched to it, this cross process thread(the thread which just came from other process) actually tries to render the controls on its main Form( the Form which actually created by this process). Note : I think you are right, as the thread which actually renders the controls in other process , is the thread of another process, and I have to create seperate thread inside Form process and needs to take the data from incoming thread while making the incoming thread back to its own process immediately without doing any thing. Regards Usman

    Windows Forms help csharp announcement

  • Needs to update WinForm (seperate process) to render newly created customized controls
    G glitteringsound

    Hello, I am facing a strange problem, I have launched a seperate Win Form based process with the help of Process.Start from another process. That process just dispatched an object which actually contains .NET controls(e.g button,textbox,label,radio button etc) as information (control information I just collected from Injecting other running managed processes). After dispatching , I need to draw these controls on that process having WinForm as main window( as its form based process). BUT THESE CONTROLS ARE NOT RENDERING ON MAIN FORM WINDOW. Main problem is having with parent control information which is not correct to me. Take a look at Code =================== public partial class TestController: Form, IApplicationEventsSink { static bool m_ControllerLoadedFirstTime = true; ITestControl m_TakoControlHandler = null; public Controller() { if (m_ControllerLoadedFirstTime == true) { MessageBox.Show("TAKOController called first time"); InitializeComponent(); m_ControllerLoadedFirstTime = false; } else MessageBox.Show("TAKOController called second time"); } private void Form1_Load(object sender, EventArgs e) { MessageBox.Show("Form1_Load"); initEnvironment(); bool bSubscriptionCreated = createSubscription(); if (bSubscriptionCreated == false) throw new Exception(String.Format("Controller failed to create subscription with Simulator process!!")); } public ITestControl CreateControl(CustomControl a_CustomControl) { ITestControl TakoControlHandler = Factory.CreateControl(a_CustomControl); m_TakoControlHandler = TakoControlHandler; return TakoControlHandler; } private void SetProperties(CustomControl a_CustomControl) { m_TakoControlHandler.setPropeties(a_CustomControl); } public void OnProcess(CustomControl a_CustomControl) { MessageBox.Show("OnProcess"); ITestControl TakoHandler = CreateControl(a_CustomControl); if (TakoHandler != null) { SetProperties(a_CustomControl); m_TakoControlHandler.SetParentHandle(base.Handle); } base.Refresh(); base.

    Windows Forms help csharp announcement

  • How publsiher-subscriber configurations can be included in a single app.config?
    G glitteringsound

    I digged out further and imagined that the problem i described, it will no longer be the issue at all. Can you please answer or help out the problem that I described. Because the problem now directed as this. "How can Remoting Obj Uri be gernated at runtime at subscriber's end?"

    .NET (Core and Framework) csharp sysadmin help question workspace

  • How can Remoting Obj Uri be gernated at runtime at subscriber's end?
    G glitteringsound

    Hello, I am implementing publisher/subscriber pattern with the use of .NET Remoting.For this i don't want to take URI's from configuration file every time a new subscriber want to subscribe to publisher, As physically there's only a single process that will behave as subscriber. But when publisher want to publish the content to subscriber, it will search for its URI from its data structures. e.g let say there are 4 seperate processes having instances(XYZ_instance1,XYZ_instance2,XYZ_instance3,XYZ_instance4) launched of "XYZ.exe". Now publisher want's to publish the contents on XYZ_instance3(XYZ_instance3 would have its different uri).For this every time XYZ's instance is subscribing it must carry its unique URI, which will be added in publisher's data structure, describing about its identity as uri. Whenever some data needs to publish, publisher will use this URI. The problem is every time a new instance is launching and subscribing, it will read its uri from app.config, which will be same all the time new instance of XYZ is started(as its a same process and will access the same app.config, which's just having single uri). FOR this i have to generate a unique URI every time, instance is started, and that URI whould be known by Remoting envirnment.

    .NET (Core and Framework) csharp regex help question workspace

  • How publsiher-subscriber configurations can be included in a single app.config?
    G glitteringsound

    Hello, I am writing simple server(publisher) and client(subscriber) application to imagine interprocess communication between two managed C# processes. I need to write server(that's working as a publisher), it is publishing the contents to the subscriber on the basis of its subscriptions and client(subscriber). For this I have to write 2 seperate configuration files (app.config) on both publisher and subscriber's end. It's creating a problem. Publisher when want's to publish the data, it starts the process(client which's working as subscriber) with Process.Start statement. On start client process unable to initialize remoting, because it loads config.app which 's being used on server side. Where it did'nt find its own configurations(subscriber's configuration's). I need to write both subscriber and publisher configuration on a single app.config file.How? Regards, Usman

    .NET (Core and Framework) csharp sysadmin help question workspace

  • How to read the all Guids defined in abcd_i.c file from pdb
    G glitteringsound

    Hello, I need to read all GUIDS defined inside abcdef_i.c(where abcdef can be any file defining all guids of a COM component) file from DIA SDK? I need to extract all relavent component's Guids defined under COM component from pdb file. I am using DIA SDK, but always its get_guid returns badPtr(0x000) and it is reported bug of MSFT Regards Usman

    ATL / WTL / STL com help tutorial question

  • How can I filter unwanted unwanted types(not in my code) from DIA SDK?
    G glitteringsound

    DIA SDK is the API available by Microsoft under C:\Program Files\Microsoft Visual Studio 10.0\DIA SDK\... It always gives you the debugging information 2 or 3 times more than that of Dbghelp and DbgEng etc. It enumerates pdbs and allows the users to extract information like 1 - Types(names) & base class details. 2 - Members(Their names and full signature details, parameter offsets and methods RVA) 3 - Type data members. and lot more what ever you required. My problem is that yes I want to enumerate all these things. But basically my problem is that I don't want the details(which I mentioned above ) of all those types which are not defined in my code.What It does now , it starts from kernel modules (Dll's) , enumerates the details(i.e types , method associated with that type and so on..) and trail down to the end of the user defined types(classes',structs and enums). I only want my types (which are strictly defined in my code) to be enlist. I don't want all kernel related types.i.e contained inside (MSCVP100.dll,KERNEL32.dll,User32.dll,Ole32.dll,OleAut32.dll). If still any confusion is there let me know then..

    COM question c++

  • How can I filter unwanted unwanted types(not in my code) from DIA SDK?
    G glitteringsound

    I statted completely.. Rephrasing..It shows every user defined type that's not used or declare inside my code. I mean If I have declared and use "MyClass" as class in my dll/exe then it should enumerate only this. It enumerates all those UDTs(User Defined Types)which 's not used or declared in my binary(dll/exe).Those comes from kernel modules and libraries. As we know that every program implicitely linked with some kernel imports(i.e kernel32.lib,user32.lib, gdi32.lib, winspool.lib ,comdlg32.lib....). I only need strictly those user defined types those I declared inside my source code.For this I can give or hardcode that user defined type to which I want to enumerate. But this is not the solution of the problem. Some I don't know earlier the name of type used in my source code. In that case I need list of all of those types which I used or declared in my source code.

    COM question c++

  • How can I filter unwanted unwanted types(not in my code) from DIA SDK?
    G glitteringsound

    Hello, I am using DIA SDK for extracting user defined complex types(just I used in my C++ code). I don't know all my types(used in code) before extracting from DIA SDK with names and members(data members& functions). It shows everything, I mean all those user defined types which I don't need at all(i.e kernel types and enums & structs). I only want to enumerate those which are strictly used in my code(i.e in Dll/EXE in any format). Is there is any way out at all by which we can restrict those unwanted (Kernel source types or MSFT specific source code) types to appear? Regards Usman

    COM question c++

  • Can we calculate/extract Virtual Table address some how from DIA SDK?
    G glitteringsound

    Let me clarify now.! Forget about COM. I have Win32 Type say.. (MyStruct) and it contains some virtual functions. Now this type would contains an extra member(hidden) i.e vpVtable that's pointing to some vtable's base address which this type contains because it has some virtual functions. Right...? Now I want to access some how this vtable's base address or some how the rva to this vtable's address. I have read the documentation of DIA SDK. and it gives you every information what pdb file contains. Now I am giving the pdb file of that binary(WIN32 Dll/EXE) which contains a type(i.e struct namely MyStruct) which in turns contains some virtual functions. So If some how I can point "MyStruct" and can get its contained vtable's base address. If still any confusion in understanding the context, do let me know then..

    COM question
  • Login

  • Don't have an account? Register

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